@effection/vitest
v2.1.2
Published
Effection Integration for the Vitest framework
Downloads
39
Readme
@effection/vitest
config
@effection/vitest
needs to be inlined to negate the following error:
One of the following is possible:
- "vitest" is imported outside of your tests (in that case, use "vitest/node" or import.meta.vitest)
- "vitest" is imported inside "globalSetup" (use "setupFiles", because "globalSetup" runs in a different context)
- Your dependency inside "node_modules" imports "vitest" directly (in that case, inline that dependency, using "deps.inline" config)
- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
include: ['test/*.test.ts'],
deps: {
inline: [/@effection\/vitest/],
},
},
});
Effection is the structured concurrency toolkit for JavaScript. You can find detailed information about testing asynchronous processes in the testing guide