Skip to content

Commit

Permalink
Replaces /tmp/output.txt by ./output.txt to prevent side effects
Browse files Browse the repository at this point in the history
  • Loading branch information
raugfer committed Sep 10, 2024
1 parent f3042b4 commit e730fbb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nodejs-ts-cjs-tsc",
"scripts": {
"build": "tsc",
"test": "node dist/index.js > /tmp/output.txt && diff /tmp/output.txt output.txt"
"test": "node dist/index.js > .output.txt && diff .output.txt output.txt"
},
"dependencies": {
"garaga_rs": "file:../../../garaga_rs/garaga_rs-0.1.0.tgz"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"scripts": {
"build": "tsc",
"test": "node dist/index.js > /tmp/output.txt && diff /tmp/output.txt output.txt"
"test": "node dist/index.js > .output.txt && diff .output.txt output.txt"
},
"dependencies": {
"garaga_rs": "file:../../../garaga_rs/garaga_rs-0.1.0.tgz"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"start": "PORT=8080 next start",
"start-bg": "npm start & sleep 5",
"stop-bg": "pkill next-server",
"test": "npm run start-bg && node scrape.cjs > /tmp/output.txt; npm run stop-bg; diff /tmp/output.txt output.txt"
"test": "npm run start-bg && node scrape.cjs > .output.txt; npm run stop-bg; diff .output.txt output.txt"
},
"dependencies": {
"garaga_rs": "file:../../../garaga_rs/garaga_rs-0.1.0.tgz",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"start": "webpack-dev-server --port 8080",
"start-bg": "npm start & sleep 5",
"stop-bg": "pkill webpack",
"test": "npm run start-bg && node scrape.cjs > /tmp/output.txt; npm run stop-bg; diff /tmp/output.txt output.txt"
"test": "npm run start-bg && node scrape.cjs > .output.txt; npm run stop-bg; diff .output.txt output.txt"
},
"devDependencies": {
"copy-webpack-plugin": "^12.0.2",
Expand Down

0 comments on commit e730fbb

Please sign in to comment.