diff --git a/test/publish.test.js b/integration/publish.int.test.js similarity index 100% rename from test/publish.test.js rename to integration/publish.int.test.js diff --git a/jest.config.js b/jest.config.js index 6c01718..c743737 100644 --- a/jest.config.js +++ b/jest.config.js @@ -6,7 +6,7 @@ const toExport = { roots: [''], transformIgnorePatterns: ['node_modules', '//lib', '//(?!src)'], verbose: true, - testRegex: '(/test/.*(test|spec))\\.[jt]sx?$', + testRegex: '(/(test|integration)/.*(test|spec))\\.[jt]sx?$', }; if (toNotIgnore.modules.length) { diff --git a/package.json b/package.json index 1a85674..0727881 100644 --- a/package.json +++ b/package.json @@ -25,12 +25,11 @@ "coveralls": "cat ./coverage/lcov.info | coveralls", "docs:api:markdown": "npx typedoc --theme markdown --exclude ./src/test --out ./docs/api ./src", "docs:api:website": "npx typedoc --exclude ./src/test --out docs ./src", - "jest": "npx jest", "lint": "npm run build && eslint --ext .js,.ts,.tsx *.js src test --color", "mocha": "mocha", "prepack": "npm run build", "prepare": "npx sort-package-json", - "test": "npm run build && npm run jest", + "test": "npm run build && npx jest ./test && npx jest ./integration", "test:ci": "npm run build && npm run test --coverage && npm run coveralls", "preversion": "npm run build" },