File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
packages/cubejs-base-driver Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1- const base = require ( '../../jest.base.config' ) ;
1+ const base = require ( '../../jest.base-ts .config' ) ;
22
33/** @type {import('jest').Config } */
44module . exports = {
55 ...base ,
66 rootDir : '.' ,
7+ transform : {
8+ '^.+\\.ts$' : [ 'ts-jest' , {
9+ tsconfig : '<rootDir>/tsconfig.jest.json'
10+ } ] ,
11+ } ,
712} ;
Original file line number Diff line number Diff line change 1818 "tsc" : " tsc" ,
1919 "watch" : " tsc -w" ,
2020 "test" : " npm run unit && npm run integration" ,
21- "unit" : " jest --runInBand --coverage --verbose dist/ test/unit" ,
21+ "unit" : " jest --runInBand --coverage --verbose test/unit" ,
2222 "lint" : " eslint src/* test/* --ext .ts,.js" ,
2323 "lint:fix" : " eslint --fix src/* test/* --ext .ts,.js"
2424 },
4141 "@types/jest" : " ^29" ,
4242 "@types/node" : " ^20" ,
4343 "jest" : " ^29" ,
44+ "ts-jest" : " ^29" ,
4445 "typescript" : " ~5.2.2"
4546 },
4647 "license" : " Apache-2.0" ,
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./tsconfig.json" ,
3+ "compilerOptions" : {
4+ "module" : " CommonJS" ,
5+ "paths" : {
6+ "@cubejs-backend/shared" : [" ../cubejs-backend-shared/src" ]
7+ }
8+ }
9+ }
You can’t perform that action at this time.
0 commit comments