Browse Source

Fix test script in package.json

Joeri Exelmans 3 years ago
parent
commit
ef0d84a88c
3 changed files with 4 additions and 4 deletions
  1. 2 2
      package.json
  2. 2 1
      src/onion/mock_node_util.ts
  3. 0 1
      src/onion/something.ts

+ 2 - 2
package.json

@@ -22,8 +22,8 @@
 		"typescript": "^4.7.4"
 	},
 	"scripts": {
-		"test": "mocha --require ts-node/register './*.test.ts'",
-		"test-with-coverage": "nyc --reporter=text mocha --require ts-node/register './*.test.ts'",
+		"test": "mocha --require ts-node/register './src/**/*.test.ts'",
+		"test-with-coverage": "nyc --reporter=text mocha --require ts-node/register './src/**/*.test.ts'",
 		"webpack": "webpack --mode=development",
 		"dev-server": "webpack serve --mode=development"
 	}

+ 2 - 1
src/onion/mock_node_util.ts

@@ -1,5 +1,6 @@
 // When building the 'onion' library for browser, the 'util' NodeJS library will not be found.
-// A real polyfill would be overkill, so we just provide this 'mock':
+// A real polyfill would be overkill, so we just provide this 'mock'.
+// The polyfill configuration is in 'webpack.config.js'.
 
 export const inspect = {
   custom: Symbol(),

+ 0 - 1
src/onion/something.ts

@@ -1 +0,0 @@
-export const x = 10;