Skip to content

Commit 5d0961c

Browse files
committed
fix: run jasmine tests using tsx
1 parent 060f974 commit 5d0961c

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

package-lock.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"prettier": "prettier --write .",
1616
"start": "node dist/index.js",
1717
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=7.0.1} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} mongodb-runner start -t ${MONGODB_TOPOLOGY} --version ${MONGODB_VERSION} -- --port 27017",
18-
"test": "TESTING=true jasmine",
18+
"test": "TESTING=true tsx node_modules/jasmine/bin/jasmine",
1919
"posttest": "mongodb-runner stop --all",
2020
"watch": "nodemon index.ts",
2121
"build": "tsc",
@@ -35,6 +35,7 @@
3535
"@semantic-release/github": "11.0.1",
3636
"@semantic-release/npm": "12.0.1",
3737
"@semantic-release/release-notes-generator": "14.0.3",
38+
"@types/jasmine": "^5.1.7",
3839
"@types/node": "^22.14.1",
3940
"@types/parse": "^3.0.9",
4041
"cross-env": "7.0.3",

spec/support/jasmine.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"spec_dir": "spec",
3-
"spec_files": ["**/*[sS]pec.js"],
4-
"helpers": ["helper.js"],
3+
"spec_files": ["**/*[sS]pec.ts"],
4+
"helpers": ["helper.ts"],
55
"stopSpecOnExpectationFailure": false,
66
"random": false
77
}

0 commit comments

Comments
 (0)