diff --git a/packages/connector-alipay/jest.config.ts b/packages/connector-alipay/jest.config.ts index d8ceb361c..431024545 100644 --- a/packages/connector-alipay/jest.config.ts +++ b/packages/connector-alipay/jest.config.ts @@ -1,4 +1,4 @@ -import { Config, merge } from '@logto/jest-config'; +import { Config, merge } from '@silverhand/jest-config'; const config: Config.InitialOptions = merge({ testEnvironment: 'node', diff --git a/packages/connector-alipay/package.json b/packages/connector-alipay/package.json index 317d0c199..ae96e78b6 100644 --- a/packages/connector-alipay/package.json +++ b/packages/connector-alipay/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "@logto/connector-types": "^0.1.0", - "@logto/jest-config": "^0.1.0", + "@silverhand/jest-config": "^0.13.0", "@logto/shared": "^0.1.0", "@silverhand/essentials": "^1.1.0", "dayjs": "^1.10.5", diff --git a/packages/connector-aliyun-dm/jest.config.ts b/packages/connector-aliyun-dm/jest.config.ts index d8ceb361c..431024545 100644 --- a/packages/connector-aliyun-dm/jest.config.ts +++ b/packages/connector-aliyun-dm/jest.config.ts @@ -1,4 +1,4 @@ -import { Config, merge } from '@logto/jest-config'; +import { Config, merge } from '@silverhand/jest-config'; const config: Config.InitialOptions = merge({ testEnvironment: 'node', diff --git a/packages/connector-aliyun-dm/package.json b/packages/connector-aliyun-dm/package.json index 34a518f8f..46ce5bf5c 100644 --- a/packages/connector-aliyun-dm/package.json +++ b/packages/connector-aliyun-dm/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "@logto/connector-types": "^0.1.0", - "@logto/jest-config": "^0.1.0", + "@silverhand/jest-config": "^0.13.0", "@logto/shared": "^0.1.0", "@silverhand/essentials": "^1.1.0", "got": "^11.8.2", diff --git a/packages/connector-aliyun-sms/jest.config.ts b/packages/connector-aliyun-sms/jest.config.ts index d8ceb361c..431024545 100644 --- a/packages/connector-aliyun-sms/jest.config.ts +++ b/packages/connector-aliyun-sms/jest.config.ts @@ -1,4 +1,4 @@ -import { Config, merge } from '@logto/jest-config'; +import { Config, merge } from '@silverhand/jest-config'; const config: Config.InitialOptions = merge({ testEnvironment: 'node', diff --git a/packages/connector-aliyun-sms/package.json b/packages/connector-aliyun-sms/package.json index 1de8d3f99..8180a2d7d 100644 --- a/packages/connector-aliyun-sms/package.json +++ b/packages/connector-aliyun-sms/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "@logto/connector-types": "^0.1.0", - "@logto/jest-config": "^0.1.0", + "@silverhand/jest-config": "^0.13.0", "@logto/shared": "^0.1.0", "@logto/schemas": "^0.1.0", "@silverhand/essentials": "^1.1.0", diff --git a/packages/connector-facebook/jest.config.ts b/packages/connector-facebook/jest.config.ts index d8ceb361c..431024545 100644 --- a/packages/connector-facebook/jest.config.ts +++ b/packages/connector-facebook/jest.config.ts @@ -1,4 +1,4 @@ -import { Config, merge } from '@logto/jest-config'; +import { Config, merge } from '@silverhand/jest-config'; const config: Config.InitialOptions = merge({ testEnvironment: 'node', diff --git a/packages/connector-facebook/package.json b/packages/connector-facebook/package.json index fbcaf527c..f0db22813 100644 --- a/packages/connector-facebook/package.json +++ b/packages/connector-facebook/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "@logto/connector-types": "^0.1.0", - "@logto/jest-config": "^0.1.0", + "@silverhand/jest-config": "^0.13.0", "@logto/shared": "^0.1.0", "@logto/schemas": "^0.1.0", "@silverhand/essentials": "^1.1.0", diff --git a/packages/connector-github/jest.config.ts b/packages/connector-github/jest.config.ts index d8ceb361c..431024545 100644 --- a/packages/connector-github/jest.config.ts +++ b/packages/connector-github/jest.config.ts @@ -1,4 +1,4 @@ -import { Config, merge } from '@logto/jest-config'; +import { Config, merge } from '@silverhand/jest-config'; const config: Config.InitialOptions = merge({ testEnvironment: 'node', diff --git a/packages/connector-github/package.json b/packages/connector-github/package.json index 830e5a667..53d316d7a 100644 --- a/packages/connector-github/package.json +++ b/packages/connector-github/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "@logto/connector-types": "^0.1.0", - "@logto/jest-config": "^0.1.0", + "@silverhand/jest-config": "^0.13.0", "@logto/shared": "^0.1.0", "@logto/schemas": "^0.1.0", "@silverhand/essentials": "^1.1.0", diff --git a/packages/connector-google/jest.config.ts b/packages/connector-google/jest.config.ts index d8ceb361c..431024545 100644 --- a/packages/connector-google/jest.config.ts +++ b/packages/connector-google/jest.config.ts @@ -1,4 +1,4 @@ -import { Config, merge } from '@logto/jest-config'; +import { Config, merge } from '@silverhand/jest-config'; const config: Config.InitialOptions = merge({ testEnvironment: 'node', diff --git a/packages/connector-google/package.json b/packages/connector-google/package.json index d2a3c8ffc..d03d276a3 100644 --- a/packages/connector-google/package.json +++ b/packages/connector-google/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "@logto/connector-types": "^0.1.0", - "@logto/jest-config": "^0.1.0", + "@silverhand/jest-config": "^0.13.0", "@logto/shared": "^0.1.0", "@logto/schemas": "^0.1.0", "@silverhand/essentials": "^1.1.0", diff --git a/packages/connector-wechat-native/jest.config.ts b/packages/connector-wechat-native/jest.config.ts index d8ceb361c..431024545 100644 --- a/packages/connector-wechat-native/jest.config.ts +++ b/packages/connector-wechat-native/jest.config.ts @@ -1,4 +1,4 @@ -import { Config, merge } from '@logto/jest-config'; +import { Config, merge } from '@silverhand/jest-config'; const config: Config.InitialOptions = merge({ testEnvironment: 'node', diff --git a/packages/connector-wechat-native/package.json b/packages/connector-wechat-native/package.json index 3a4425120..15fb32fbf 100644 --- a/packages/connector-wechat-native/package.json +++ b/packages/connector-wechat-native/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "@logto/connector-types": "^0.1.0", - "@logto/jest-config": "^0.1.0", + "@silverhand/jest-config": "^0.13.0", "@logto/shared": "^0.1.0", "@logto/schemas": "^0.1.0", "@silverhand/essentials": "^1.1.0", diff --git a/packages/connector-wechat/jest.config.ts b/packages/connector-wechat/jest.config.ts index d8ceb361c..431024545 100644 --- a/packages/connector-wechat/jest.config.ts +++ b/packages/connector-wechat/jest.config.ts @@ -1,4 +1,4 @@ -import { Config, merge } from '@logto/jest-config'; +import { Config, merge } from '@silverhand/jest-config'; const config: Config.InitialOptions = merge({ testEnvironment: 'node', diff --git a/packages/connector-wechat/package.json b/packages/connector-wechat/package.json index 3e08ca711..3e61a13e8 100644 --- a/packages/connector-wechat/package.json +++ b/packages/connector-wechat/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "@logto/connector-types": "^0.1.0", - "@logto/jest-config": "^0.1.0", + "@silverhand/jest-config": "^0.13.0", "@logto/shared": "^0.1.0", "@logto/schemas": "^0.1.0", "@silverhand/essentials": "^1.1.0", diff --git a/packages/core/jest.config.ts b/packages/core/jest.config.ts index 47d6d079b..d9dbe2ca8 100644 --- a/packages/core/jest.config.ts +++ b/packages/core/jest.config.ts @@ -1,4 +1,4 @@ -import { merge, Config } from '@logto/jest-config'; +import { merge, Config } from '@silverhand/jest-config'; const config: Config.InitialOptions = merge({ testEnvironment: 'node', diff --git a/packages/core/package.json b/packages/core/package.json index be008d998..6cbaf20e2 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -64,7 +64,7 @@ "zod": "^3.14.3" }, "devDependencies": { - "@logto/jest-config": "^0.1.0", + "@silverhand/jest-config": "^0.13.0", "@shopify/jest-koa-mocks": "^3.0.8", "@silverhand/eslint-config": "^0.12.0", "@silverhand/ts-config": "^0.12.0", diff --git a/packages/jest-config/jest.config.ts b/packages/jest-config/jest.config.ts deleted file mode 100644 index 69b56ee91..000000000 --- a/packages/jest-config/jest.config.ts +++ /dev/null @@ -1,37 +0,0 @@ -import type { Config } from '@jest/types'; -import deepmerge from 'deepmerge'; - -const baseConfig: Config.InitialOptions = Object.freeze({ - preset: 'ts-jest', - transform: { - // Enable JS/JSX transformation - '\\.(t|j)sx?$': 'ts-jest', - }, - transformIgnorePatterns: [ - '[/\\\\]node_modules[/\\\\]((?!ky[/\\\\]).)+\\.(js|jsx|mjs|cjs|ts|tsx)$', - ], - moduleNameMapper: { - // Map path alias in `tsconfig.json` - '^@/(.*)$': '/src/$1', - // Mock CSS Modules - '\\.module\\.(css|sass|scss)$': 'identity-obj-proxy', - // Explicitly point jose to cjs version - '^jose/(.*)$': '/node_modules/jose/dist/node/cjs/$1', - }, - coveragePathIgnorePatterns: ['/node_modules/', '/lib/', '/build/', '/src/__mocks__/'], - coverageReporters: ['text-summary', 'lcov'], - globals: { - 'ts-jest': { - tsconfig: 'tsconfig.test.json', - }, - }, -}); - -export default baseConfig; - -export const merge = ( - config: Config.InitialOptions, - mergeOptions?: deepmerge.Options -): Config.InitialOptions => deepmerge(baseConfig, config, mergeOptions); - -export type { Config } from '@jest/types'; diff --git a/packages/jest-config/package.json b/packages/jest-config/package.json deleted file mode 100644 index 24b7a4c4e..000000000 --- a/packages/jest-config/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "@logto/jest-config", - "version": "0.1.0", - "main": "lib/jest.config.js", - "repository": "https://github.com/logto-io/logto", - "author": "Silverhand Inc. ", - "license": "MPL-2.0", - "files": [ - "lib", - "jest.config.ts" - ], - "private": true, - "scripts": { - "preinstall": "npx only-allow pnpm", - "precommit": "lint-staged", - "build": "rm -rf lib/ && tsc", - "lint": "eslint --ext .ts jest.config.ts", - "lint:report": "pnpm lint --format json --output-file report.json", - "prepack": "pnpm build" - }, - "engines": { - "node": "^16.0.0" - }, - "devDependencies": { - "@silverhand/eslint-config": "^0.12.0", - "@silverhand/ts-config": "^0.12.0", - "@types/node": "16", - "eslint": "^8.10.0", - "jest": "^27.5.1", - "lint-staged": "^12.0.0", - "prettier": "^2.3.2", - "ts-node": "^10.0.0", - "typescript": "^4.6.3" - }, - "eslintConfig": { - "extends": "@silverhand" - }, - "prettier": "@silverhand/eslint-config/.prettierrc", - "dependencies": { - "@jest/types": "^27.5.1", - "deepmerge": "^4.2.2", - "identity-obj-proxy": "^3.0.0", - "jest-matcher-specific-error": "^1.0.0", - "jest-transform-stub": "^2.0.0", - "jest-transformer-svg": "^1.0.2", - "ts-jest": "^27.1.1" - } -} diff --git a/packages/jest-config/tsconfig.json b/packages/jest-config/tsconfig.json deleted file mode 100644 index d6a0fbdf6..000000000 --- a/packages/jest-config/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@silverhand/ts-config/tsconfig.base", - "compilerOptions": { - "outDir": "lib", - "declaration": true - }, - "include": [ - "jest.config.ts" - ] -} diff --git a/packages/ui/jest.config.ts b/packages/ui/jest.config.ts index 9282c2641..d9c957b98 100644 --- a/packages/ui/jest.config.ts +++ b/packages/ui/jest.config.ts @@ -1,4 +1,4 @@ -import { merge, Config } from '@logto/jest-config'; +import { merge, Config } from '@silverhand/jest-config'; const config: Config.InitialOptions = merge({ testEnvironment: 'jsdom', diff --git a/packages/ui/package.json b/packages/ui/package.json index 2d7043da6..454606396 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -16,7 +16,7 @@ "test": "jest" }, "devDependencies": { - "@logto/jest-config": "^0.1.0", + "@silverhand/jest-config": "^0.13.0", "@logto/phrases": "^0.1.0", "@logto/schemas": "^0.1.0", "@parcel/core": "^2.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4be6c0612..b1613ee74 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,11 +22,11 @@ importers: specifiers: '@jest/types': ^27.5.1 '@logto/connector-types': ^0.1.0 - '@logto/jest-config': ^0.1.0 '@logto/shared': ^0.1.0 '@shopify/jest-koa-mocks': ^3.0.8 '@silverhand/eslint-config': ^0.12.0 '@silverhand/essentials': ^1.1.0 + '@silverhand/jest-config': ^0.13.0 '@silverhand/ts-config': ^0.12.0 '@types/jest': ^27.4.1 '@types/lodash.pick': ^4.4.6 @@ -49,9 +49,9 @@ importers: zod: ^3.14.3 dependencies: '@logto/connector-types': link:../connector-types - '@logto/jest-config': link:../jest-config '@logto/shared': link:../shared '@silverhand/essentials': 1.1.7 + '@silverhand/jest-config': 0.13.0_tgc6da2oqazvrn56dzwolsqo5i dayjs: 1.10.7 got: 11.8.3 iconv-lite: 0.6.3 @@ -81,10 +81,10 @@ importers: specifiers: '@jest/types': ^27.5.1 '@logto/connector-types': ^0.1.0 - '@logto/jest-config': ^0.1.0 '@logto/shared': ^0.1.0 '@silverhand/eslint-config': ^0.12.0 '@silverhand/essentials': ^1.1.0 + '@silverhand/jest-config': ^0.13.0 '@silverhand/ts-config': ^0.12.0 '@types/jest': ^27.4.1 '@types/node': ^16.3.1 @@ -100,9 +100,9 @@ importers: zod: ^3.14.3 dependencies: '@logto/connector-types': link:../connector-types - '@logto/jest-config': link:../jest-config '@logto/shared': link:../shared '@silverhand/essentials': 1.1.7 + '@silverhand/jest-config': 0.13.0_tgc6da2oqazvrn56dzwolsqo5i got: 11.8.3 zod: 3.14.3 devDependencies: @@ -124,11 +124,11 @@ importers: specifiers: '@jest/types': ^27.5.1 '@logto/connector-types': ^0.1.0 - '@logto/jest-config': ^0.1.0 '@logto/schemas': ^0.1.0 '@logto/shared': ^0.1.0 '@silverhand/eslint-config': ^0.12.0 '@silverhand/essentials': ^1.1.0 + '@silverhand/jest-config': ^0.13.0 '@silverhand/ts-config': ^0.12.0 '@types/jest': ^27.4.1 '@types/node': ^16.3.1 @@ -144,10 +144,10 @@ importers: zod: ^3.14.3 dependencies: '@logto/connector-types': link:../connector-types - '@logto/jest-config': link:../jest-config '@logto/schemas': link:../schemas '@logto/shared': link:../shared '@silverhand/essentials': 1.1.7 + '@silverhand/jest-config': 0.13.0_tgc6da2oqazvrn56dzwolsqo5i got: 11.8.3 zod: 3.14.3 devDependencies: @@ -169,11 +169,11 @@ importers: specifiers: '@jest/types': ^27.5.1 '@logto/connector-types': ^0.1.0 - '@logto/jest-config': ^0.1.0 '@logto/schemas': ^0.1.0 '@logto/shared': ^0.1.0 '@silverhand/eslint-config': ^0.12.0 '@silverhand/essentials': ^1.1.0 + '@silverhand/jest-config': ^0.13.0 '@silverhand/ts-config': ^0.12.0 '@types/jest': ^27.4.1 '@types/node': ^16.3.1 @@ -190,10 +190,10 @@ importers: zod: ^3.14.3 dependencies: '@logto/connector-types': link:../connector-types - '@logto/jest-config': link:../jest-config '@logto/schemas': link:../schemas '@logto/shared': link:../shared '@silverhand/essentials': 1.1.7 + '@silverhand/jest-config': 0.13.0_tgc6da2oqazvrn56dzwolsqo5i got: 11.8.3 zod: 3.14.3 devDependencies: @@ -216,11 +216,11 @@ importers: specifiers: '@jest/types': ^27.5.1 '@logto/connector-types': ^0.1.0 - '@logto/jest-config': ^0.1.0 '@logto/schemas': ^0.1.0 '@logto/shared': ^0.1.0 '@silverhand/eslint-config': ^0.12.0 '@silverhand/essentials': ^1.1.0 + '@silverhand/jest-config': ^0.13.0 '@silverhand/ts-config': ^0.12.0 '@types/jest': ^27.4.1 '@types/node': ^16.3.1 @@ -237,10 +237,10 @@ importers: zod: ^3.14.3 dependencies: '@logto/connector-types': link:../connector-types - '@logto/jest-config': link:../jest-config '@logto/schemas': link:../schemas '@logto/shared': link:../shared '@silverhand/essentials': 1.1.7 + '@silverhand/jest-config': 0.13.0_tgc6da2oqazvrn56dzwolsqo5i got: 11.8.3 zod: 3.14.3 devDependencies: @@ -263,11 +263,11 @@ importers: specifiers: '@jest/types': ^27.5.1 '@logto/connector-types': ^0.1.0 - '@logto/jest-config': ^0.1.0 '@logto/schemas': ^0.1.0 '@logto/shared': ^0.1.0 '@silverhand/eslint-config': ^0.12.0 '@silverhand/essentials': ^1.1.0 + '@silverhand/jest-config': ^0.13.0 '@silverhand/ts-config': ^0.12.0 '@types/jest': ^27.4.1 '@types/node': ^16.3.1 @@ -284,10 +284,10 @@ importers: zod: ^3.14.3 dependencies: '@logto/connector-types': link:../connector-types - '@logto/jest-config': link:../jest-config '@logto/schemas': link:../schemas '@logto/shared': link:../shared '@silverhand/essentials': 1.1.7 + '@silverhand/jest-config': 0.13.0_tgc6da2oqazvrn56dzwolsqo5i got: 11.8.3 zod: 3.14.3 devDependencies: @@ -343,11 +343,11 @@ importers: specifiers: '@jest/types': ^27.5.1 '@logto/connector-types': ^0.1.0 - '@logto/jest-config': ^0.1.0 '@logto/schemas': ^0.1.0 '@logto/shared': ^0.1.0 '@silverhand/eslint-config': ^0.12.0 '@silverhand/essentials': ^1.1.0 + '@silverhand/jest-config': ^0.13.0 '@silverhand/ts-config': ^0.12.0 '@types/jest': ^27.4.1 '@types/node': ^16.3.1 @@ -364,10 +364,10 @@ importers: zod: ^3.14.3 dependencies: '@logto/connector-types': link:../connector-types - '@logto/jest-config': link:../jest-config '@logto/schemas': link:../schemas '@logto/shared': link:../shared '@silverhand/essentials': 1.1.7 + '@silverhand/jest-config': 0.13.0_tgc6da2oqazvrn56dzwolsqo5i got: 11.8.3 zod: 3.14.3 devDependencies: @@ -390,11 +390,11 @@ importers: specifiers: '@jest/types': ^27.5.1 '@logto/connector-types': ^0.1.0 - '@logto/jest-config': ^0.1.0 '@logto/schemas': ^0.1.0 '@logto/shared': ^0.1.0 '@silverhand/eslint-config': ^0.12.0 '@silverhand/essentials': ^1.1.0 + '@silverhand/jest-config': ^0.13.0 '@silverhand/ts-config': ^0.12.0 '@types/jest': ^27.4.1 '@types/node': ^16.3.1 @@ -411,10 +411,10 @@ importers: zod: ^3.14.3 dependencies: '@logto/connector-types': link:../connector-types - '@logto/jest-config': link:../jest-config '@logto/schemas': link:../schemas '@logto/shared': link:../shared '@silverhand/essentials': 1.1.7 + '@silverhand/jest-config': 0.13.0_tgc6da2oqazvrn56dzwolsqo5i got: 11.8.3 zod: 3.14.3 devDependencies: @@ -556,12 +556,12 @@ importers: '@logto/connector-types': ^0.1.0 '@logto/connector-wechat': ^0.1.0 '@logto/connector-wechat-native': ^0.1.0 - '@logto/jest-config': ^0.1.0 '@logto/phrases': ^0.1.0 '@logto/schemas': ^0.1.0 '@shopify/jest-koa-mocks': ^3.0.8 '@silverhand/eslint-config': ^0.12.0 '@silverhand/essentials': ^1.1.6 + '@silverhand/jest-config': ^0.13.0 '@silverhand/ts-config': ^0.12.0 '@types/inquirer': ^8.2.1 '@types/jest': ^27.4.1 @@ -660,9 +660,9 @@ importers: snakecase-keys: 5.1.2 zod: 3.14.3 devDependencies: - '@logto/jest-config': link:../jest-config '@shopify/jest-koa-mocks': 3.0.8 '@silverhand/eslint-config': 0.12.0_hjjt7jwmhwqm7bjf55k5ihcdqq + '@silverhand/jest-config': 0.13.0_makj2rl6gt73u7koqro542qsmm '@silverhand/ts-config': 0.12.0_typescript@4.6.2 '@types/inquirer': 8.2.1 '@types/jest': 27.4.1 @@ -750,43 +750,6 @@ importers: ts-node: 10.7.0_drbbnc2wk7uwp4gsdsdvgzqgya typescript: 4.6.4 - packages/jest-config: - specifiers: - '@jest/types': ^27.5.1 - '@silverhand/eslint-config': ^0.12.0 - '@silverhand/ts-config': ^0.12.0 - '@types/node': '16' - deepmerge: ^4.2.2 - eslint: ^8.10.0 - identity-obj-proxy: ^3.0.0 - jest: ^27.5.1 - jest-matcher-specific-error: ^1.0.0 - jest-transform-stub: ^2.0.0 - jest-transformer-svg: ^1.0.2 - lint-staged: ^12.0.0 - prettier: ^2.3.2 - ts-jest: ^27.1.1 - ts-node: ^10.0.0 - typescript: ^4.6.3 - dependencies: - '@jest/types': 27.5.1 - deepmerge: 4.2.2 - identity-obj-proxy: 3.0.0 - jest-matcher-specific-error: 1.0.0 - jest-transform-stub: 2.0.0 - jest-transformer-svg: 1.0.2_jest@27.5.1 - ts-jest: 27.1.1_eufcckiefljihjhutvg5ibw4rq - devDependencies: - '@silverhand/eslint-config': 0.12.0_xpq2m6kgodzytx4bqbpsfgmxbe - '@silverhand/ts-config': 0.12.0_typescript@4.6.3 - '@types/node': 16.11.12 - eslint: 8.10.0 - jest: 27.5.1_ts-node@10.7.0 - lint-staged: 12.4.0 - prettier: 2.5.1 - ts-node: 10.7.0_42uktnex6oapjbpw2i7vzvmrzi - typescript: 4.6.3 - packages/phrases: specifiers: '@silverhand/eslint-config': ^0.12.0 @@ -867,7 +830,6 @@ importers: packages/ui: specifiers: - '@logto/jest-config': ^0.1.0 '@logto/phrases': ^0.1.0 '@logto/schemas': ^0.1.0 '@parcel/core': ^2.5.0 @@ -877,6 +839,7 @@ importers: '@silverhand/eslint-config': ^0.12.0 '@silverhand/eslint-config-react': ^0.11.0 '@silverhand/essentials': ^1.1.7 + '@silverhand/jest-config': ^0.13.0 '@silverhand/ts-config': ^0.12.0 '@silverhand/ts-config-react': ^0.12.0 '@testing-library/react': ^12.0.0 @@ -913,7 +876,6 @@ importers: typescript: ^4.6.2 use-debounced-loader: ^0.1.1 devDependencies: - '@logto/jest-config': link:../jest-config '@logto/phrases': link:../phrases '@logto/schemas': link:../schemas '@parcel/core': 2.5.0 @@ -923,6 +885,7 @@ importers: '@silverhand/eslint-config': 0.12.0_hjjt7jwmhwqm7bjf55k5ihcdqq '@silverhand/eslint-config-react': 0.11.0_oxzh5pb5bdzd47fiyp3dy75fai '@silverhand/essentials': 1.1.7 + '@silverhand/jest-config': 0.13.0_makj2rl6gt73u7koqro542qsmm '@silverhand/ts-config': 0.12.0_typescript@4.6.2 '@silverhand/ts-config-react': 0.12.0_typescript@4.6.2 '@testing-library/react': 12.1.5_sfoxds7t5ydpegc3knd667wn6m @@ -5961,6 +5924,48 @@ packages: - typescript dev: true + /@silverhand/jest-config/0.13.0_makj2rl6gt73u7koqro542qsmm: + resolution: {integrity: sha512-9yiktlD7LwqCqT8QrCZRTt/8oTcm5T0O2LfAuPY4cXTY1T2d6sfPPaBrmYShhamD1gcPUNEzXfB4f31iR4KAQw==} + engines: {node: ^16.0.0} + peerDependencies: + jest: ^27.5.0 + dependencies: + '@jest/types': 27.5.1 + deepmerge: 4.2.2 + identity-obj-proxy: 3.0.0 + jest: 27.5.1 + jest-matcher-specific-error: 1.0.0 + jest-transform-stub: 2.0.0 + ts-jest: 27.1.1_makj2rl6gt73u7koqro542qsmm + transitivePeerDependencies: + - '@babel/core' + - '@types/jest' + - babel-jest + - esbuild + - typescript + dev: true + + /@silverhand/jest-config/0.13.0_tgc6da2oqazvrn56dzwolsqo5i: + resolution: {integrity: sha512-9yiktlD7LwqCqT8QrCZRTt/8oTcm5T0O2LfAuPY4cXTY1T2d6sfPPaBrmYShhamD1gcPUNEzXfB4f31iR4KAQw==} + engines: {node: ^16.0.0} + peerDependencies: + jest: ^27.5.0 + dependencies: + '@jest/types': 27.5.1 + deepmerge: 4.2.2 + identity-obj-proxy: 3.0.0 + jest: 27.5.1 + jest-matcher-specific-error: 1.0.0 + jest-transform-stub: 2.0.0 + ts-jest: 27.1.1_tgc6da2oqazvrn56dzwolsqo5i + transitivePeerDependencies: + - '@babel/core' + - '@types/jest' + - babel-jest + - esbuild + - typescript + dev: false + /@silverhand/ts-config-react/0.12.0_typescript@4.6.2: resolution: {integrity: sha512-B4ECrZ2ClQaDDfNkQxxw+MfBmMEeJawB16qpyBAtvLFYJMA18u85wdYlCCKXOLj9HeMYaNafe3OQ67WLhCTFiQ==} engines: {node: '>=14.15.0'} @@ -12935,15 +12940,6 @@ packages: /jest-transform-stub/2.0.0: resolution: {integrity: sha512-lspHaCRx/mBbnm3h4uMMS3R5aZzMwyNpNIJLXj4cEsV0mIUtS4IjYJLSoyjRCtnxb6RIGJ4NL2quZzfIeNhbkg==} - /jest-transformer-svg/1.0.2_jest@27.5.1: - resolution: {integrity: sha512-A9z5Vzs+TlPpxekwUOCyVu5sHgcCKUKyJTE1q/bUhtAILpgf3kIj6IjguQrTJG0jN0nRnuNV7ckPUE8Vdf12Jg==} - peerDependencies: - jest: ^27.0.6 - react: ^17.0.2 - dependencies: - jest: 27.5.1_ts-node@10.7.0 - dev: false - /jest-transformer-svg/1.0.2_jest@27.5.1+react@17.0.2: resolution: {integrity: sha512-A9z5Vzs+TlPpxekwUOCyVu5sHgcCKUKyJTE1q/bUhtAILpgf3kIj6IjguQrTJG0jN0nRnuNV7ckPUE8Vdf12Jg==} peerDependencies: @@ -19278,39 +19274,6 @@ packages: yargs-parser: 20.2.9 dev: true - /ts-jest/27.1.1_eufcckiefljihjhutvg5ibw4rq: - resolution: {integrity: sha512-Ds0VkB+cB+8g2JUmP/GKWndeZcCKrbe6jzolGrVWdqVUFByY/2KDHqxJ7yBSon7hDB1TA4PXxjfZ+JjzJisvgA==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - hasBin: true - peerDependencies: - '@babel/core': '>=7.0.0-beta.0 <8' - '@types/jest': ^27.0.0 - babel-jest: '>=27.0.0 <28' - esbuild: ~0.14.0 - jest: ^27.0.0 - typescript: '>=3.8 <5.0' - peerDependenciesMeta: - '@babel/core': - optional: true - '@types/jest': - optional: true - babel-jest: - optional: true - esbuild: - optional: true - dependencies: - bs-logger: 0.2.6 - fast-json-stable-stringify: 2.1.0 - jest: 27.5.1_ts-node@10.7.0 - jest-util: 27.5.1 - json5: 2.2.1 - lodash.memoize: 4.1.2 - make-error: 1.3.6 - semver: 7.3.5 - typescript: 4.6.3 - yargs-parser: 20.2.9 - dev: false - /ts-jest/27.1.1_makj2rl6gt73u7koqro542qsmm: resolution: {integrity: sha512-Ds0VkB+cB+8g2JUmP/GKWndeZcCKrbe6jzolGrVWdqVUFByY/2KDHqxJ7yBSon7hDB1TA4PXxjfZ+JjzJisvgA==} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} @@ -19377,7 +19340,6 @@ packages: semver: 7.3.5 typescript: 4.6.3 yargs-parser: 20.2.9 - dev: true /ts-node/10.4.0_mtczhn2fdutewshpiexgzmf2mq: resolution: {integrity: sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A==} @@ -19409,37 +19371,6 @@ packages: yn: 3.1.1 dev: true - /ts-node/10.7.0_42uktnex6oapjbpw2i7vzvmrzi: - resolution: {integrity: sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==} - hasBin: true - peerDependencies: - '@swc/core': '>=1.2.50' - '@swc/wasm': '>=1.2.50' - '@types/node': '*' - typescript: '>=2.7' - peerDependenciesMeta: - '@swc/core': - optional: true - '@swc/wasm': - optional: true - dependencies: - '@cspotcode/source-map-support': 0.7.0 - '@tsconfig/node10': 1.0.8 - '@tsconfig/node12': 1.0.9 - '@tsconfig/node14': 1.0.1 - '@tsconfig/node16': 1.0.2 - '@types/node': 16.11.12 - acorn: 8.7.0 - acorn-walk: 8.2.0 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 4.6.3 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - dev: true - /ts-node/10.7.0_52efxrzidnucw2w35vvobhxasa: resolution: {integrity: sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==} hasBin: true