Closed jamesg1 closed 2 years ago
Related to https://github.com/sodatea/vite-jest/issues/12 and https://github.com/vitejs/vite/issues/1955
I changed "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}", to "<rootDir>/src/**/*.{spec,test}.{ts,tsx}", and now the tests are running.
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}",
"<rootDir>/src/**/*.{spec,test}.{ts,tsx}",
module.exports = { preset: "vite-jest", setupFilesAfterEnv: ["<rootDir>/jest.setup.js"], testMatch: [ "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}", "<rootDir>/src/**/*.{spec,test}.{ts,tsx}", ], testEnvironment: "jest-environment-jsdom", moduleNameMapper: { "\\.(css|sass|scss)$": "identity-obj-proxy", }, };
Is this still relevant? The test passes me on a fresh checkout.
Yeah can be closed. I believe there is another vite jest library under development too.
Related to https://github.com/sodatea/vite-jest/issues/12 and https://github.com/vitejs/vite/issues/1955
I changed
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}",
to"<rootDir>/src/**/*.{spec,test}.{ts,tsx}",
and now the tests are running.