|
48 | 48 | "prepack": "npm install && npm run build && npm run test", |
49 | 49 | "pre-build": "npm run setVersion", |
50 | 50 | "setVersion": "gulp setVersion", |
51 | | - "test": "npm run test:cjs && npm run test:esm", |
| 51 | + "test": "npm run test:cjs && npm run karma", |
52 | 52 | "test:cjs": "npm run build:sub_cjs && mocha", |
53 | 53 | "test:coverage": "TS_NODE_PROJECT='./tsconfig-cjs.json' nyc mocha --require isomorphic-fetch -r ts-node/register test/common/**/*.ts && mocha --require isomorphic-fetch -r ts-node/register test/common/**/*.ts", |
54 | | - "test:development": "tsc --p test/tsconfig-test-development.json && mocha 'lib/test/development/**/*.js' --require isomorphic-fetch", |
55 | | - "test:esm": "npm run build:sub_es && mocha --require esm" |
| 54 | + "test:development": "tsc --p test/tsconfig-test-development.json && mocha 'lib/test/development/**/*.js' --require isomorphic-fetch" |
56 | 55 | }, |
57 | 56 | "mocha": { |
58 | 57 | "reporter": [ |
|
63 | 62 | }, |
64 | 63 | "spec": [ |
65 | 64 | "lib/test/common/**/*.js", |
66 | | - "lib/test/node/**/*.js", |
67 | | - "lib/es/test/common/**/*.js", |
68 | | - "lib/es/test/node/**/*.js" |
| 65 | + "lib/test/node/**/*.js" |
69 | 66 | ], |
70 | 67 | "require": [ |
71 | | - "isomorphic-fetch", |
72 | | - "esm" |
| 68 | + "isomorphic-fetch" |
73 | 69 | ] |
74 | 70 | }, |
75 | 71 | "nyc": { |
|
101 | 97 | "@rollup/plugin-node-resolve": "^15.0.0", |
102 | 98 | "@rollup/plugin-terser": "^0.3.0", |
103 | 99 | "@types/chai": "^4.2.14", |
104 | | - "@types/mocha": "^9.0.0", |
| 100 | + "@types/mocha": "^10.0.1", |
105 | 101 | "@types/node": "^18.0.0", |
106 | 102 | "@types/sinon": "^10.0.8", |
107 | 103 | "@typescript-eslint/eslint-plugin": "^5.12.1", |
|
111 | 107 | "eslint-config-prettier": "^8.3.0", |
112 | 108 | "eslint-plugin-prettier": "^4.0.0", |
113 | 109 | "eslint-plugin-simple-import-sort": "^8.0.0", |
114 | | - "esm": "^3.2.25", |
115 | 110 | "form-data": "^4.0.0", |
116 | 111 | "gulp": "^4.0.2", |
117 | 112 | "husky": "^8.0.0", |
|
123 | 118 | "karma-mocha": "^2.0.1", |
124 | 119 | "karma-typescript": "^5.2.0", |
125 | 120 | "lint-staged": "^13.0.0", |
126 | | - "mocha": "^6.2.3", |
| 121 | + "mocha": "^10.2.0", |
127 | 122 | "mocha-junit-reporter": "^2.1.1", |
128 | 123 | "nyc": "^15.1.0", |
129 | 124 | "prettier": "^2.5.1", |
|
0 commit comments