From 2d55eb888f4e8d9d4300e7e8bb8cfc486f420824 Mon Sep 17 00:00:00 2001 From: Mike Kreiser Date: Sat, 21 Oct 2023 15:15:07 -0400 Subject: [PATCH] Properly configure unit test script to improve local dev --- jest.config.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index e82bbe8..6cd854b 100644 --- a/jest.config.js +++ b/jest.config.js @@ -11,6 +11,7 @@ module.exports = { coverageDirectory: 'coverage', restoreMocks: true, testEnvironment: 'node', + testMatch: ['**/src/**/?(*.)+(spec|test).[jt]s?(x)'], transform: { '^.+\\.js$': 'babel-jest' } diff --git a/package.json b/package.json index e4b8b0a..d447f3b 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "lint": "eslint integration-tests/**/*.js src/**/*.js", "prepublishOnly": "npm run build", "serve:docs": "npm run build:docs && http-server ./docs -c-1", - "test": "jest src --maxWorkers=2", + "test": "jest --maxWorkers=2", "test:integration": "jest integration-tests --maxWorkers=2 --coverage=false" }, "repository": {