File tree 3 files changed +17
-2
lines changed
3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 67
67
"test:all" : " run-s test:unit test:integration" ,
68
68
"test:unit" : " jest" ,
69
69
"test:integration" : " test/run-integration-tests.sh && yarn test:types" ,
70
- "test:types" : " cd test/types/ && yarn && tsc " ,
70
+ "test:types" : " cd test/types && yarn test " ,
71
71
"test:watch" : " jest --watch" ,
72
72
"vercel:branch" : " source vercel/set-up-branch-for-test-app-use.sh" ,
73
73
"vercel:project" : " source vercel/make-project-use-current-branch.sh"
Original file line number Diff line number Diff line change 1
1
{
2
- "description" : " This is only used to install the nextjs v12 package so we can test against those types" ,
2
+ "description" : " This is used to install the nextjs v12 so we can test against those types" ,
3
+ "scripts" : {
4
+ "test" : " ts-node test.ts"
5
+ },
3
6
"dependencies" : {
4
7
"next" : " 12.3.1"
5
8
}
Original file line number Diff line number Diff line change
1
+ /* eslint-disable no-console */
2
+ import { parseSemver } from '@sentry/utils' ;
3
+ import { execSync } from 'child_process' ;
4
+
5
+ const NODE_VERSION = parseSemver ( process . versions . node ) ;
6
+
7
+ if ( NODE_VERSION . major && NODE_VERSION . major >= 12 ) {
8
+ console . log ( 'Installing next@v12...' ) ;
9
+ execSync ( 'yarn install' , { stdio : 'inherit' } ) ;
10
+ console . log ( 'Testing some types...' ) ;
11
+ execSync ( 'tsc --noEmit --project tsconfig.json' , { stdio : 'inherit' } ) ;
12
+ }
You can’t perform that action at this time.
0 commit comments