Skip to content

Commit

Permalink
chore: Add Jasmine WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kruplm committed Apr 26, 2024
1 parent 7ec2b41 commit d8687a7
Show file tree
Hide file tree
Showing 5 changed files with 164 additions and 3 deletions.
144 changes: 144 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
"rollup-plugin-sourcemaps": "^0.6.2",
"run-sequence": "^2.2.1",
"tslib": "^2.2.0",
"jasmine-ts": "^0.4.0",
"ts-node": "^10.9.2",
"typedoc": "^0.25.0",
"typescript": "^5.0.3"
},
Expand Down
14 changes: 14 additions & 0 deletions packages/desktopjs/jasmine.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"spec_dir": "tests",
"spec_files": [
"**/*[sS]pec.?(m)ts"
],
"helpers": [
"helpers/**/*.?(m)ts",
"../node_modules/ts-node/register/type-check.js"
],
"env": {
"stopSpecOnExpectationFailure": false,
"random": true
}
}
3 changes: 2 additions & 1 deletion packages/desktopjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"clean": "npm run clean:dist && npm run clean:build",
"bundle": "rollup -c",
"build": "npm run clean && tsc && npm run bundle",
"test": "gulp test",
"test1": "gulp test",
"test": "jasmine --config=./jasmine.json",
"deploy": "npm publish --provenance --access public",
"prepublishOnly": "copyfiles ../../README.md . -u 2"
},
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"module": "es2015",
"target": "es6",
"module": "ES2022",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
Expand Down

0 comments on commit d8687a7

Please sign in to comment.