File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed
packages/rtk-query-codegen-openapi Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
const { resolve } = require ( 'path' ) ;
2
2
3
- const tsConfigPath = resolve ( './test/tsconfig' ) ;
3
+ const tsConfigPath = resolve ( './test/tsconfig.json ' ) ;
4
4
5
5
/** @typedef {import('ts-jest/dist/types') } */
6
6
/** @type {import('@jest/types').Config.InitialOptions } */
7
7
const config = {
8
8
rootDir : './test' ,
9
9
setupFilesAfterEnv : [ '<rootDir>/jest.setup.ts' ] ,
10
+ preset : 'ts-jest' ,
10
11
globals : {
11
12
'ts-jest' : {
12
13
tsconfig : tsConfigPath ,
Original file line number Diff line number Diff line change 70
70
71
71
expect ( fromTs ) . toEqual ( fromJs ) ;
72
72
expect ( fromJson ) . toEqual ( fromJs ) ;
73
- } , 25000 ) ;
73
+ } , 120000 ) ;
74
74
75
75
test ( 'missing parameters doesnt fail' , async ( ) => {
76
76
const out = await cli ( [ `./config.invalid-example.json` ] , __dirname ) ;
Original file line number Diff line number Diff line change
1
+ // @ts -ignore
1
2
global . fetch = require ( 'node-fetch' ) ;
2
3
const { format } = require ( 'prettier' ) ;
3
4
const { server } = require ( './mocks/server' ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
+ "lib" : [" es2019" ],
3
4
"paths" : {
4
5
"@/*" : [" ./test/fixtures/*" ],
5
6
"@rtk-query/codegen-openapi" : [" ./src" ]
You can’t perform that action at this time.
0 commit comments