Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/use node native test runners #14

Prev Previous commit
Added placeholders for int and e2e tests
node-glob when it's unable to resolve files is not passing anything to command.That causes all tests to be run without the pattern. Thus if you run `npm run build` and you have dist folder, script will fail.
  • Loading branch information
oskardudycz committed Feb 19, 2024
commit 52c205b8e66e5d5de1f2dfc6cfe0d6545e4115e2
6 changes: 3 additions & 3 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.3",
"glob": "^10.3.10",
"glob": "10.3.10",
"npm-run-all2": "6.1.2",
oskardudycz marked this conversation as resolved.
Show resolved Hide resolved
"prettier": "3.2.5",
"supertest": "6.3.4",
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"tsup": "8.0.2",
"tsx": "^4.7.1",
"tsx": "4.7.1",
"typescript": "5.3.3",
"uuid": "9.0.1",
"vitepress": "1.0.0-rc.42"
Expand All @@ -70,4 +70,4 @@
"packages/emmett-esdb",
"packages/emmett-expressjs"
]
}
}
2 changes: 1 addition & 1 deletion packages/emmett-esdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
"dependencies": {
"@event-driven-io/emmett": "^0.1.7"
}
}
}
2 changes: 1 addition & 1 deletion packages/emmett-expressjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
"dependencies": {
"@event-driven-io/emmett": "^0.1.7"
}
}
}
2 changes: 1 addition & 1 deletion packages/emmett/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
"dependencies": {
"uuid": "9.0.1"
}
}
}
8 changes: 8 additions & 0 deletions packages/emmett/src/testing/placeholder.e2e.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import assert from 'node:assert';
import { describe, it } from 'node:test';

describe('Remove when first e2e is added', () => {
it('node-globa passes no files to script so it`ll try to run all tests failing on dist', () => {
assert(true);
});
});
8 changes: 8 additions & 0 deletions packages/emmett/src/testing/placeholder.int.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import assert from 'node:assert';
import { describe, it } from 'node:test';

describe('Remove when first int is added', () => {
it('node-globa passes no files to script so it`ll try to run all tests failing on dist', () => {
assert(true);
});
});