From 52c205b8e66e5d5de1f2dfc6cfe0d6545e4115e2 Mon Sep 17 00:00:00 2001 From: Oskar Dudycz Date: Mon, 19 Feb 2024 09:56:41 +0100 Subject: [PATCH] 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. --- package-lock.json | 6 +++--- package.json | 6 +++--- packages/emmett-esdb/package.json | 2 +- packages/emmett-expressjs/package.json | 2 +- packages/emmett/package.json | 2 +- packages/emmett/src/testing/placeholder.e2e.spec.ts | 8 ++++++++ packages/emmett/src/testing/placeholder.int.spec.ts | 8 ++++++++ 7 files changed, 25 insertions(+), 9 deletions(-) create mode 100644 packages/emmett/src/testing/placeholder.e2e.spec.ts create mode 100644 packages/emmett/src/testing/placeholder.int.spec.ts diff --git a/package-lock.json b/package-lock.json index 8502e673..d9f5e172 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,14 +23,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", "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" @@ -4930,4 +4930,4 @@ "devDependencies": {} } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 467821f8..c9e6d35e 100644 --- a/package.json +++ b/package.json @@ -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", "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" @@ -70,4 +70,4 @@ "packages/emmett-esdb", "packages/emmett-expressjs" ] -} \ No newline at end of file +} diff --git a/packages/emmett-esdb/package.json b/packages/emmett-esdb/package.json index 9713c0d4..fc0bea5c 100644 --- a/packages/emmett-esdb/package.json +++ b/packages/emmett-esdb/package.json @@ -42,4 +42,4 @@ "dependencies": { "@event-driven-io/emmett": "^0.1.7" } -} \ No newline at end of file +} diff --git a/packages/emmett-expressjs/package.json b/packages/emmett-expressjs/package.json index f933ac3b..924c3e25 100644 --- a/packages/emmett-expressjs/package.json +++ b/packages/emmett-expressjs/package.json @@ -42,4 +42,4 @@ "dependencies": { "@event-driven-io/emmett": "^0.1.7" } -} \ No newline at end of file +} diff --git a/packages/emmett/package.json b/packages/emmett/package.json index e9d3abf5..ec6d3bb8 100644 --- a/packages/emmett/package.json +++ b/packages/emmett/package.json @@ -42,4 +42,4 @@ "dependencies": { "uuid": "9.0.1" } -} \ No newline at end of file +} diff --git a/packages/emmett/src/testing/placeholder.e2e.spec.ts b/packages/emmett/src/testing/placeholder.e2e.spec.ts new file mode 100644 index 00000000..e518c34d --- /dev/null +++ b/packages/emmett/src/testing/placeholder.e2e.spec.ts @@ -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); + }); +}); diff --git a/packages/emmett/src/testing/placeholder.int.spec.ts b/packages/emmett/src/testing/placeholder.int.spec.ts new file mode 100644 index 00000000..6b4326f2 --- /dev/null +++ b/packages/emmett/src/testing/placeholder.int.spec.ts @@ -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); + }); +});