Open AXeL-dev opened 3 months ago
Hello, i'm using this plugin with vite & ts-jest, still when running my tests i get the following error:
I'm using the following babel config:
{ "presets": [ "@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript" ], "plugins": ["babel-plugin-transform-barrels"] }
And the following jest config:
import { Config } from 'jest'; const config: Config = { testEnvironment: 'jsdom', testTimeout: 30000, transform: { '^.+\\.(t|j)sx?$': [ 'ts-jest', { tsconfig: 'tsconfig.test.json', babelConfig: true, useESM: true, }, ], }, setupFiles: ['<rootDir>/setup.jest.ts'], testPathIgnorePatterns: ['<rootDir>/node_modules/'], modulePathIgnorePatterns: ['<rootDir>/node_modules/'], testRegex: '(<rootDir>/src/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$', moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], ... }; export default config;
Is there anything missing in my config or maybe your plugin does only support webpack?
Hi @AXeL-dev I have released a new version of the plugin (v1.0.16) that adds support for Vite.
Please update your version and let me know if it resolves your issue.
Thanks
Hello, i'm using this plugin with vite & ts-jest, still when running my tests i get the following error:
I'm using the following babel config:
And the following jest config:
Is there anything missing in my config or maybe your plugin does only support webpack?