2.1.2 • Published 7 months ago

@effection/vitest v2.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@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/],
    },
  },
});

License: MIT Created by Frontside Chat on Discord

Effection is the structured concurrency toolkit for JavaScript. You can find detailed information about testing asynchronous processes in the testing guide