@effection/vitest
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

@effection/vitest

config

@effection/vitest needs to be inlined to negate the following error:

Error: Vitest was initialized with native Node instead of Vite Node.

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

Readme

Keywords

none

Package Sidebar

Install

npm i @effection/vitest

Weekly Downloads

13

Version

2.1.2

License

MIT

Unpacked Size

32.1 kB

Total Files

12

Last publish

Collaborators

  • frontsidejack