Skip to main content

Configuration

When running vitest the default esbuild processing ignore any TypeScript transforms.

Instead we can include this plugin which will perform the same process as the TypeScript transformer.

In you vitest config include the following:

import { NameOfPlugin } from "@twin.org/nameof-vitest-plugin";

export default defineConfig({
...
plugins: [NameOfPlugin]
...
});