From 7860aedeebb322f57173308ce65d2773a9ac37f7 Mon Sep 17 00:00:00 2001 From: Anton Lavrenov Date: Sun, 9 May 2021 07:26:16 -0500 Subject: [PATCH] add import test --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ea6fa422..b7bad933 100644 --- a/package.json +++ b/package.json @@ -18,11 +18,11 @@ "start": "npm run test:watch", "compile": "npm run clean && npm run tsc && cp ./src/index-types.d.ts ./lib/index-types.d.ts && npm run rollup", "build": "npm run compile && cp ./src/index-types.d.ts ./lib && gulp build && node ./rename-imports.js", - "test:import": "node ./test/import-test.js", + "test:import": "npm run build && node ./test/import-test.js", "test": "npm run test:browser && npm run test:node", "test:build": "parcel build ./test/unit-tests.html --dist-dir test-build --target none --public-url ./ --no-source-maps", "test:browser": "npm run test:build && mocha-headless-chrome -f ./test-build/unit-tests.html -a disable-web-security", - "test:node": "env TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha -r ts-node/register test/unit/**/*.ts --exit", + "test:node": "env TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha -r ts-node/register test/unit/**/*.ts --exit && npm run test:import", "test:watch": "rm -rf ./parcel-cache && parcel serve ./test/unit-tests.html ./test/manual-tests.html ./test/performance/bunnies.html", "tsc": "tsc --removeComments", "rollup": "rollup -c",