Skip to content

Commit 1659602

Browse files
committed
Use SWC for Jest TS and add yaml parallel script
1 parent b14395b commit 1659602

File tree

4 files changed

+285
-144
lines changed

4 files changed

+285
-144
lines changed

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Configuration supports:
119119
- Use `debug: true` in action inputs for detailed AI interaction logs
120120
- Test with different AI providers by setting appropriate environment variables
121121
- The binary name is `visor` (as defined in package.json bin field)
122-
- Tests use Jest with TypeScript support via ts-jest
122+
- Tests use Jest with TypeScript support via @swc/jest
123123

124124
### Debugging Techniques
125125

jest.config.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
module.exports = {
2-
preset: 'ts-jest',
32
testEnvironment: 'node',
43
roots: ['<rootDir>/src', '<rootDir>/tests'],
54
testMatch: ['**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts'],
65
transform: {
7-
'^.+\\.ts$': 'ts-jest',
6+
'^.+\\.(t|j)sx?$': [
7+
'@swc/jest',
8+
{
9+
jsc: {
10+
parser: {
11+
syntax: 'typescript',
12+
tsx: false,
13+
},
14+
target: 'es2022',
15+
},
16+
module: {
17+
type: 'commonjs',
18+
},
19+
},
20+
],
821
},
922
collectCoverageFrom: [
1023
'src/**/*.ts',

0 commit comments

Comments
 (0)