0.1.3 • Published 7 months ago
@dlenroc/vitest-serenity-js v0.1.3
Serenity/JS Vitest
A module that integrates Serenity/JS with Vitest testing framework.
Installation
npm install -D @dlenroc/vitest-serenity-js
Usage
Add "@dlenroc/vitest-serenity-js/setup"
to setupFiles
and configure as
needed.
import type {} from '@dlenroc/vitest-serenity-js/setup';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
setupFiles: ['@dlenroc/vitest-serenity-js/setup'],
provide: {
serenity: {
crew: [
'@serenity-js/serenity-bdd',
[
'@serenity-js/core:ArtifactArchiver',
{ outputDirectory: './target/site/serenity' },
],
],
},
},
},
});
Check out the ProvidedContext for all available Serenity/JS configuration options and the TestContext for information about injected fixtures.