Skip to content

Commit bcb373c

Browse files
authoredJan 6, 2022
meta: soft link all external tests to the project folder (#283)
1 parent 2fdc2ff commit bcb373c

File tree

6 files changed

+5
-12
lines changed

6 files changed

+5
-12
lines changed
 

‎test/external/imports/js-cjs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"express": "^4.17.2",
12-
"express-rate-limit": "file:../../../../express-rate-limit-6.0.4.tgz"
12+
"express-rate-limit": "file:../../../.."
1313
},
1414
"devDependencies": {
1515
"eslint": "^8.6.0",

‎test/external/imports/js-esm/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"express": "^4.17.2",
13-
"express-rate-limit": "file:../../../../express-rate-limit-6.0.4.tgz"
13+
"express-rate-limit": "file:../../../.."
1414
},
1515
"devDependencies": {
1616
"cross-env": "^7.0.3",

‎test/external/imports/ts-cjs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"express": "^4.17.2",
12-
"express-rate-limit": "file:../../../../express-rate-limit-6.0.4.tgz"
12+
"express-rate-limit": "file:../../../.."
1313
},
1414
"devDependencies": {
1515
"@types/express": "^4.17.13",

‎test/external/imports/ts-esm/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"express": "^4.17.2",
13-
"express-rate-limit": "file:../../../../express-rate-limit-6.0.4.tgz"
13+
"express-rate-limit": "file:../../../.."
1414
},
1515
"devDependencies": {
1616
"@types/express": "^4.17.13",

‎test/external/run-all-tests

-7
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ for dir in `ls -d */`; do
1212
cd $dir
1313
# Get a fresh install of all node modules
1414
rm -rf node_modules
15-
# Also install the latest version of the package, built off the master branch
16-
npm install ../../../../express-rate-limit*.tgz
17-
# and ensure the other dependencies are installed...
1815
npm install
1916
# Run the linter and the tests
2017
npm run lint
@@ -41,10 +38,6 @@ if [[ -z "$CI" ]]; then
4138
fi
4239
# Get a fresh install of all the node modules
4340
rm -rf node_modules
44-
# Also install the latest version of the package, built off the master branch
45-
npm install ../../../express-rate-limit*.tgz
46-
# npm 6 does not install other packages if they are not installed already when
47-
# running `npm install <something>`
4841
npm install
4942
# Run the tests
5043
npm run test

‎test/external/stores/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"@types/rate-limit-redis": "^1.7.3",
1111
"express": "^4.17.2",
12-
"express-rate-limit": "file:../../../express-rate-limit-6.0.4.tgz",
12+
"express-rate-limit": "file:../../..",
1313
"precise-memory-rate-limit": "^1.1.4",
1414
"rate-limit-memcached": "^0.6.0",
1515
"rate-limit-mongo": "^2.3.2",

0 commit comments

Comments
 (0)
Please sign in to comment.