2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-06 07:20:40 +00:00

Fix unit tests

This commit is contained in:
Vjacheslav Trushkin 2022-06-19 22:40:13 +03:00
parent db7e0c2ffd
commit 8f8f48c992
13 changed files with 302 additions and 977 deletions

View File

@ -20,8 +20,7 @@
"build:lib": "tsc -b",
"build:rollup": "rollup -c rollup.config.js",
"build:api": "api-extractor run --local --verbose --config api-extractor.json",
"build:cleanup": "node cleanup",
"monorepo:postinstall": "npm run build"
"build:cleanup": "node cleanup"
},
"devDependencies": {
"@iconify/core": "workspace:^",

View File

@ -14,14 +14,13 @@
},
"scripts": {
"clean": "rimraf lib dist tsconfig.tsbuildinfo",
"prebuild": "npm run clean",
"prebuild": "pnpm run clean",
"build": "node build",
"build:lib": "tsc -b",
"build:dist": "rollup -c rollup.config.js",
"prebuild:api": "api-extractor run --local --verbose --config api-extractor.offline.json",
"build:api": "api-extractor run --local --verbose --config api-extractor.iconify.json",
"build:cleanup": "node cleanup",
"monorepo:postinstall": "npm run build",
"test": "jest --runInBand"
},
"main": "dist/iconify.js",

View File

@ -18,12 +18,11 @@
"types": "dist/index.d.ts",
"scripts": {
"cleanup": "rimraf lib dist",
"prebuild": "npm run cleanup",
"prebuild": "pnpm run cleanup",
"build": "node build",
"build:tsc": "tsc -b",
"build:bundles": "rollup -c rollup.config.js",
"build:api": "node build --only-api",
"monorepo:postinstall": "npm run build",
"test": "jest --runInBand"
},
"dependencies": {
@ -47,7 +46,7 @@
"svelte": "3.39",
"svelte-jester": "^2.3.2",
"svelte-preprocess": "^4.10.7",
"ts-jest": "^27.1.5"
"ts-jest": "28.0.0-next.3"
},
"peerDependencies": {
"svelte": ">=3"

View File

@ -89,7 +89,7 @@
"rimraf": "^3.0.2",
"rollup": "^2.75.6",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^27.1.5",
"ts-jest": "28.0.0-next.3",
"typescript": "^4.7.4"
}
}

View File

@ -18,7 +18,6 @@
"build:dist": "rollup -c rollup.config.js",
"prebuild:api": "api-extractor run --local --verbose --config api-extractor.offline.json",
"build:api": "api-extractor run --local --verbose --config api-extractor.iconify.json",
"monorepo:postinstall": "npm run build",
"test": "vitest"
},
"main": "dist/iconify.js",

View File

@ -18,7 +18,6 @@
"build:dist": "rollup -c rollup.config.js",
"prebuild:api": "api-extractor run --local --verbose --config api-extractor.offline.json",
"build:api": "api-extractor run --local --verbose --config api-extractor.iconify.json",
"monorepo:postinstall": "npm run build",
"test": "jest --runInBand"
},
"main": "dist/iconify.js",
@ -55,7 +54,7 @@
"@vue/test-utils": "^1.3.0",
"@vue/vue2-jest": "^27.0.0",
"babel-jest": "^27.5.1",
"jest": "^27.5.1",
"jest": "28.0.0-alpha.11",
"rollup": "^2.75.6",
"typescript": "^4.7.4",
"vue": "^2.6.14"

View File

@ -19,15 +19,14 @@
"scripts": {
"clean": "rimraf lib dist tsconfig.tsbuildinfo",
"lint": "eslint src/**/*.ts",
"prebuild": "npm run lint && npm run clean",
"prebuild": "pnpm run lint && pnpm run clean",
"build": "node build",
"build:api": "api-extractor run --local --verbose",
"build:lib": "tsc -b",
"build:dist": "rollup -c rollup.config.js",
"monorepo:postinstall": "npm run build",
"test:jest": "jest --runInBand",
"test:mjs": "cross-env NODE_OPTIONS=--experimental-vm-modules node tests/import-test.mjs",
"test": "npm run test:jest && npm run test:mjs"
"test": "pnpm run test:jest && pnpm run test:mjs"
},
"exports": {
"./*": "./*",
@ -70,7 +69,7 @@
"rimraf": "^3.0.2",
"rollup": "^2.75.6",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^27.1.5",
"ts-jest": "28.0.0-next.3",
"typescript": "^4.7.4"
}
}

View File

@ -14,9 +14,8 @@
},
"scripts": {
"clean": "rimraf lib dist tsconfig.tsbuildinfo",
"prebuild": "npm run clean",
"prebuild": "pnpm run clean",
"build": "tsup",
"monorepo:postinstall": "npm run build",
"test": "vitest --config vitest.config.mjs"
},
"main": "dist/iconify.js",

View File

@ -15,9 +15,8 @@
},
"scripts": {
"clean": "rimraf lib dist tsconfig.tsbuildinfo",
"prebuild": "npm run clean",
"build": "tsc -b",
"monorepo:postinstall": "npm run build"
"prebuild": "pnpm run clean",
"build": "tsc -b"
},
"main": "dist/iconify.jsx",
"types": "dist/iconify.d.ts",

View File

@ -16,12 +16,11 @@
},
"scripts": {
"lint": "eslint src/*.ts",
"prebuild": "npm run lint",
"prebuild": "[npm run lint",
"build": "tsup src/index.ts --dts --format esm,cjs",
"monorepo:postinstall": "npm run build",
"test:jest": "jest --runInBand",
"test:jasmine": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jasmine",
"test": "npm run test:jest && npm run test:jasmine"
"test:jasmine": "cross-env NODE_OPTIONS=--experimental-vm-modules pnpm dlx jasmine",
"test": "pnpm run test:jest && pnpm run test:jasmine"
},
"bugs": "https://github.com/iconify/iconify/issues",
"homepage": "https://iconify.design/",
@ -39,8 +38,8 @@
"eslint": "^8.18.0",
"eslint-plugin-jasmine": "^4.1.3",
"jasmine": "^4.2.1",
"jest": "^27.5.1",
"ts-jest": "^27.1.5",
"jest": "28.0.0-alpha.11",
"ts-jest": "28.0.0-next.3",
"tsup": "^5.12.9"
}
}

View File

@ -15,12 +15,11 @@
"scripts": {
"clean": "rimraf lib tsconfig.tsbuildinfo",
"lint": "eslint --fix src/**/*.ts",
"prebuild": "npm run lint && npm run clean",
"prebuild": "pnpm run lint && pnpm run clean",
"build": "unbuild",
"monorepo:postinstall": "npm run build",
"test:jest-cjs": "jest --clearCache --config=jest.config.cjs && jest --runInBand --config=jest.config.cjs",
"test:jest-esm": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --clearCache --config=jest.config.mjs && cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --config=jest.config.mjs",
"test": "npm run test:jest-cjs && npm run test:jest-esm",
"test:jest-esm": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --clearCache --config=jest.config.mjs && cross-env NODE_OPTIONS=--experimental-vm-modules pnpm dlx jest --runInBand --config=jest.config.mjs",
"test": "pnpm run test:jest-cjs && pnpm run test:jest-esm",
"vitest": "vitest --config vitest.config.mjs"
},
"sideEffects": false,
@ -117,9 +116,9 @@
"eslint": "^8.18.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.5.1",
"jest": "28.0.0-alpha.11",
"rimraf": "^3.0.2",
"ts-jest": "^27.1.5",
"ts-jest": "28.0.0-next.3",
"ts-node": "^10.8.1",
"unbuild": "^0.7.4",
"vitest": "^0.7.13"

View File

@ -15,15 +15,14 @@
"scripts": {
"clean": "rimraf lib tsconfig.tsbuildinfo",
"lint": "eslint --fix src/**/*.ts",
"prebuild": "npm run lint && npm run clean",
"prebuild": "pnpm run lint && pnpm run clean",
"build": "unbuild",
"monorepo:postinstall": "npm run build",
"test:jest-cjs": "jest --clearCache --config=jest.config.cjs && jest --runInBand --config=jest.config.cjs",
"test:jest-esm": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --clearCache --config=jest.config.mjs && cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --config=jest.config.mjs",
"test": "npm run test:jest-cjs && npm run test:jest-esm",
"test:jest-esm": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --clearCache --config=jest.config.mjs && cross-env NODE_OPTIONS=--experimental-vm-modules pnpm dlx jest --runInBand --config=jest.config.mjs",
"test": "pnpm run test:jest-cjs && pnpm run test:jest-esm",
"vitest:cjs": "vitest --config vitest.config.cjs",
"vitest:esm": "vitest --config vitest.config.mjs",
"vitest": "npm run vitest:cjs && npm run vitest:esm"
"vitest": "pnpm run vitest:cjs && pnpm run vitest:esm"
},
"sideEffects": false,
"main": "lib/index.cjs",
@ -226,9 +225,9 @@
"eslint": "^8.18.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.5.1",
"jest": "28.0.0-alpha.11",
"rimraf": "^3.0.2",
"ts-jest": "^27.1.5",
"ts-jest": "28.0.0-next.3",
"ts-node": "^10.8.1",
"typescript": "^4.7.4",
"unbuild": "^0.7.4",

1212
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff