Skip to content

Commit

Permalink
make sure all tests run
Browse files Browse the repository at this point in the history
  • Loading branch information
patreeceeo committed Nov 8, 2023
1 parent e50826f commit 9f95a75
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"scripts": {
"start": "nodemon start.ts",
"build": "parcel build",
"test": "NODE_ENV=test ts-node --esm --experimentalSpecifierResolution=node src/*.test.ts",
"test-dev": "NODE_OPTIONS=\"--max_old_space_size=8192\" NODE_ENV=test nodemon --experimentalSpecifierResolution=node src/*.test.ts -w \"src/*.ts\""
"test": "NODE_ENV=test ts-node --transpileOnly --esm --experimentalSpecifierResolution=node test.ts",
"test-dev": "NODE_OPTIONS=\"--max_old_space_size=8192\" NODE_ENV=test nodemon --transpileOnly --experimentalSpecifierResolution=node test.ts -w \"src/**/*.ts\""
},
"devDependencies": {
"@parcel/config-default": "^2.10.0",
Expand All @@ -19,6 +19,7 @@
"@types/ws": "^8.5.8",
"chokidar": "^3.5.3",
"debounce": "^1.2.1",
"glob": "^10.3.10",
"parcel": "^2.10.0",
"prettier": "^3.0.3",
"process": "^0.11.10",
Expand Down
7 changes: 7 additions & 0 deletions test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { sync } from "glob";

const files = sync("./src/**/*.test.ts");
for (const file of files) {
console.log(`Running ${file}`);
await import(`./${file}`);
}
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2535,7 +2535,7 @@ __metadata:
languageName: node
linkType: hard

"glob@npm:^10.2.2":
"glob@npm:^10.2.2, glob@npm:^10.3.10":
version: 10.3.10
resolution: "glob@npm:10.3.10"
dependencies:
Expand Down Expand Up @@ -3562,6 +3562,7 @@ __metadata:
"@types/ws": ^8.5.8
chokidar: ^3.5.3
debounce: ^1.2.1
glob: ^10.3.10
lodash: ^4.17.21
nodemon: ^3.0.1
parcel: ^2.10.0
Expand Down

0 comments on commit 9f95a75

Please sign in to comment.