Skip to content

Commit c834d95

Browse files
committed
build: bootstrap and configure integration tests
1 parent aa5c899 commit c834d95

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

example/above/config-overrides.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {aliasDangerous, aliasJest, configPaths} = require('react-app-rewire-alias/lib/aliasDangerous')
1+
const {aliasDangerous, aliasJest, configPaths} = require('react-app-alias-ex')
22

33
const aliasPaths = configPaths('./tsconfig.paths.json')
44

example/above/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@types/react": "^17.0.34",
1212
"@types/react-dom": "^17.0.11",
1313
"react": "^17.0.2",
14-
"react-app-rewire-alias": "file:../..",
14+
"react-app-alias-ex": "^0.0.0",
1515
"react-app-rewired": "^2.1.6",
1616
"react-dom": "^17.0.2",
1717
"react-scripts": "4.0.3",

example/main/config-overrides.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {alias, aliasJest, configPaths} = require('react-app-rewire-alias')
1+
const {alias, aliasJest, configPaths} = require('react-app-alias')
22

33
const aliasPaths = configPaths('./tsconfig.paths.json')
44

example/main/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@types/react": "^17.0.34",
1212
"@types/react-dom": "^17.0.11",
1313
"react": "^17.0.2",
14-
"react-app-rewire-alias": "file:../..",
14+
"react-app-alias": "^0.0.0",
1515
"react-app-rewired": "^2.1.6",
1616
"react-dom": "^17.0.2",
1717
"react-scripts": "4.0.3",

example/main/yarn.lock

-3
Original file line numberDiff line numberDiff line change
@@ -9111,9 +9111,6 @@ react-app-polyfill@^2.0.0:
91119111
regenerator-runtime "^0.13.7"
91129112
whatwg-fetch "^3.4.1"
91139113

9114-
"react-app-rewire-alias@file:../..":
9115-
version "1.1.5"
9116-
91179114
react-app-rewired@^2.1.6:
91189115
version "2.1.8"
91199116
resolved "https://registry.yarnpkg.com/react-app-rewired/-/react-app-rewired-2.1.8.tgz#e192f93b98daf96889418d33d3e86cf863812b56"

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
"scripts": {
99
"example:alias:install": "cd example/main && yarn install",
1010
"example:aliasex:install": "cd example/above && yarn install",
11+
"example:alias:test": "cd example/main && yarn test --watchAll=false",
12+
"example:aliasex:test": "cd example/above && yarn test --watchAll=false",
1113
"example:install": "yarn example:alias:install && yarn example:aliasex:install",
12-
"test:unit": "jest"
14+
"example:test": "yarn example:alias:test && yarn example:aliasex:test",
15+
"test:unit": "jest",
16+
"test:integration": "yarn example:alias:test && yarn example:aliasex:test",
17+
"test": "yarn test:unit && yarn test:integration"
1318
}
1419
}

0 commit comments

Comments
 (0)