Skip to content

Commit

Permalink
chore(jest): fix transform in jest-preset (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh authored Jun 17, 2024
1 parent 703ebca commit 67ffca3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion packages/chainfile-solana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"preset": "@workspace/jest"
},
"devDependencies": {
"@chainfile/testcontainers": "^0.6.0"
"@chainfile/testcontainers": "^0.6.1"
}
}
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion workspace/jest/jest-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
reporters: ['default', 'github-actions'],
moduleFileExtensions: ['ts', 'js', 'mjs', 'cjs', 'json'],
transform: {
'^.+\\.(t|j)sx?$': '@swc/jest',
'^.+\\.(t|j)sx?$': '@workspace/jest/transform',
},
testTimeout: 60000,
};
2 changes: 2 additions & 0 deletions workspace/jest/transform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Allows @swc/jest to be used without installing it globally
module.exports = require('@swc/jest');
4 changes: 2 additions & 2 deletions workspace/jest/wait-for.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import waitFor from 'wait-for-expect';
export default waitFor;
// Allows waitFor to be used without installing it globally
module.exports = require('wait-for-expect');

0 comments on commit 67ffca3

Please sign in to comment.