Skip to content

Commit 0afc6df

Browse files
committed
Fixing jest issues I hope
1 parent 4250bd0 commit 0afc6df

File tree

5 files changed

+5383
-3531
lines changed

5 files changed

+5383
-3531
lines changed
File renamed without changes.

jest.config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
module.exports = {
1+
export default {
22
moduleFileExtensions: ['ts', 'tsx', 'js', 'json', 'pegjs', 'glsl'],
33
modulePathIgnorePatterns: ['src/parser/parser.js'],
44
testPathIgnorePatterns: ['dist', 'src/parser/parser.js'],
5+
preset: 'ts-jest',
6+
resolver: 'ts-jest-resolver',
7+
// ts-jest is horrifically slow https://github.com/kulshekhar/ts-jest/issues/259#issuecomment-1332269911
8+
transform: {
9+
'^.+\\.(t|j)sx?$': '@swc/jest',
10+
},
511
};

0 commit comments

Comments
 (0)