Skip to content

Commit 9769f40

Browse files
committed
fix: update test script to include all test files in subdirectories and split the test script into multiple test scripts
1 parent 09b31c4 commit 9769f40

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"dev": "rollup -c -w",
4444
"export-types": "tsc",
4545
"build": "rm -rf dist*;rollup -c && yarn export-types",
46-
"test": "NODE_ENV=test nyc ./node_modules/mocha/bin/mocha test/*.js",
46+
"test": "NODE_ENV=test nyc ./node_modules/mocha/bin/mocha \"test/**/*.js\"",
4747
"startSampleApp": "yarn build && cd samples/sample-app/ && yarn install && node index.js",
4848
"report-coverage": "codecov"
4949
},
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const chai = require("chai");
2-
const pkg = require("../package.json");
2+
const pkg = require("../../package.json");
33
global.FormData = require('formdata-node');
44
const expect = chai.expect;
5-
const initializationParams = require("./data").initializationParams
6-
import ImageKit from "../src/index";
5+
const initializationParams = require("../data").initializationParams
6+
import ImageKit from "../../src/index";
77

88
describe("URL generation", function () {
99

0 commit comments

Comments
 (0)