Compare commits
1 Commits
359994379f
...
jpd/feat/u
Author | SHA1 | Date | |
---|---|---|---|
ae8094c9e0
|
@@ -27,9 +27,9 @@ steps:
|
||||
restore: true
|
||||
|
||||
- name: test
|
||||
image: 'node:22.14.0-slim'
|
||||
image: 'node:22.11.0-slim'
|
||||
commands:
|
||||
- yarn set version 4.6.0
|
||||
- yarn set version 4.5.3
|
||||
- yarn install
|
||||
- yarn run jest
|
||||
|
||||
|
154
.pnp.cjs
generated
154
.pnp.cjs
generated
@@ -28,11 +28,11 @@ const RAW_RUNTIME_STATE =
|
||||
"packageLocation": "./",\
|
||||
"packageDependencies": [\
|
||||
["@types/jest", "npm:29.5.14"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.7.0"],\
|
||||
["ts-jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.6"],\
|
||||
["ts-jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.5"],\
|
||||
["ts-node", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:10.9.2"],\
|
||||
["typescript", "patch:typescript@npm%3A5.8.2#optional!builtin<compat/typescript>::version=5.8.2&hash=5786d5"]\
|
||||
["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=8c6c40"]\
|
||||
],\
|
||||
"linkType": "SOFT"\
|
||||
}]\
|
||||
@@ -881,7 +881,7 @@ const RAW_RUNTIME_STATE =
|
||||
"packageDependencies": [\
|
||||
["@jest/console", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
["jest-message-util", "npm:29.7.0"],\
|
||||
["jest-util", "npm:29.7.0"],\
|
||||
@@ -907,7 +907,7 @@ const RAW_RUNTIME_STATE =
|
||||
["@jest/test-result", "npm:29.7.0"],\
|
||||
["@jest/transform", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["@types/node-notifier", null],\
|
||||
["ansi-escapes", "npm:4.3.2"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
@@ -947,7 +947,7 @@ const RAW_RUNTIME_STATE =
|
||||
["@jest/environment", "npm:29.7.0"],\
|
||||
["@jest/fake-timers", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["jest-mock", "npm:29.7.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
@@ -989,7 +989,7 @@ const RAW_RUNTIME_STATE =
|
||||
["@jest/fake-timers", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@sinonjs/fake-timers", "npm:10.3.0"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["jest-message-util", "npm:29.7.0"],\
|
||||
["jest-mock", "npm:29.7.0"],\
|
||||
["jest-util", "npm:29.7.0"]\
|
||||
@@ -1028,7 +1028,7 @@ const RAW_RUNTIME_STATE =
|
||||
["@jest/transform", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@jridgewell/trace-mapping", "npm:0.3.19"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["@types/node-notifier", null],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
["collect-v8-coverage", "npm:1.0.2"],\
|
||||
@@ -1136,7 +1136,7 @@ const RAW_RUNTIME_STATE =
|
||||
["@jest/schemas", "npm:29.6.3"],\
|
||||
["@types/istanbul-lib-coverage", "npm:2.0.4"],\
|
||||
["@types/istanbul-reports", "npm:3.0.1"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["@types/yargs", "npm:17.0.24"],\
|
||||
["chalk", "npm:4.1.2"]\
|
||||
],\
|
||||
@@ -1345,7 +1345,7 @@ const RAW_RUNTIME_STATE =
|
||||
"packageLocation": "../../../../cache/others/berry/cache/@types-graceful-fs-npm-4.1.6-1eadcf742d-10c0.zip/node_modules/@types/graceful-fs/",\
|
||||
"packageDependencies": [\
|
||||
["@types/graceful-fs", "npm:4.1.6"],\
|
||||
["@types/node", "npm:22.13.17"]\
|
||||
["@types/node", "npm:22.9.3"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
@@ -1391,11 +1391,11 @@ const RAW_RUNTIME_STATE =
|
||||
}]\
|
||||
]],\
|
||||
["@types/node", [\
|
||||
["npm:22.13.17", {\
|
||||
"packageLocation": "../../../../cache/others/berry/cache/@types-node-npm-22.13.17-888d18fda5-10c0.zip/node_modules/@types/node/",\
|
||||
["npm:22.9.3", {\
|
||||
"packageLocation": "../../../../cache/others/berry/cache/@types-node-npm-22.9.3-bc9b3f960a-10c0.zip/node_modules/@types/node/",\
|
||||
"packageDependencies": [\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["undici-types", "npm:6.20.0"]\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["undici-types", "npm:6.19.8"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
@@ -1938,11 +1938,11 @@ const RAW_RUNTIME_STATE =
|
||||
"packageDependencies": [\
|
||||
["clean-architecture", "workspace:."],\
|
||||
["@types/jest", "npm:29.5.14"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.7.0"],\
|
||||
["ts-jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.6"],\
|
||||
["ts-jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.5"],\
|
||||
["ts-node", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:10.9.2"],\
|
||||
["typescript", "patch:typescript@npm%3A5.8.2#optional!builtin<compat/typescript>::version=5.8.2&hash=5786d5"]\
|
||||
["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=8c6c40"]\
|
||||
],\
|
||||
"linkType": "SOFT"\
|
||||
}]\
|
||||
@@ -2959,7 +2959,7 @@ const RAW_RUNTIME_STATE =
|
||||
["@jest/expect", "npm:29.7.0"],\
|
||||
["@jest/test-result", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
["co", "npm:4.6.0"],\
|
||||
["dedent", "virtual:f7679858c638e2e5ade31901dd2b1e5007918fdc7d84fefb11f4200f46ba2e43b9d662fb793507b517bb1e725144e51f6d68f60f9f6100fd52144f042f58f0bc#npm:1.5.1"],\
|
||||
@@ -3064,7 +3064,7 @@ const RAW_RUNTIME_STATE =
|
||||
["@babel/core", "npm:7.22.15"],\
|
||||
["@jest/test-sequencer", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["@types/ts-node", null],\
|
||||
["babel-jest", "virtual:939a7fe9ef9185d9378b96533b42cb7bd61bd3e34d0edd537f69a76537c5748d3b4733d3050f6f18ab17ac63143f81e7f121e602a5d38c959251dc0768083e9b#npm:29.7.0"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
@@ -3151,7 +3151,7 @@ const RAW_RUNTIME_STATE =
|
||||
["@jest/environment", "npm:29.7.0"],\
|
||||
["@jest/fake-timers", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["jest-mock", "npm:29.7.0"],\
|
||||
["jest-util", "npm:29.7.0"]\
|
||||
],\
|
||||
@@ -3174,7 +3174,7 @@ const RAW_RUNTIME_STATE =
|
||||
["jest-haste-map", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/graceful-fs", "npm:4.1.6"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["anymatch", "npm:3.1.3"],\
|
||||
["fb-watchman", "npm:2.0.2"],\
|
||||
["fsevents", "patch:fsevents@npm%3A2.3.3#optional!builtin<compat/fsevents>::version=2.3.3&hash=df0bf1"],\
|
||||
@@ -3263,7 +3263,7 @@ const RAW_RUNTIME_STATE =
|
||||
"packageDependencies": [\
|
||||
["jest-mock", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["jest-util", "npm:29.7.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
@@ -3339,7 +3339,7 @@ const RAW_RUNTIME_STATE =
|
||||
["@jest/test-result", "npm:29.7.0"],\
|
||||
["@jest/transform", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
["emittery", "npm:0.13.1"],\
|
||||
["graceful-fs", "npm:4.2.11"],\
|
||||
@@ -3371,7 +3371,7 @@ const RAW_RUNTIME_STATE =
|
||||
["@jest/test-result", "npm:29.7.0"],\
|
||||
["@jest/transform", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
["cjs-module-lexer", "npm:1.2.3"],\
|
||||
["collect-v8-coverage", "npm:1.0.2"],\
|
||||
@@ -3425,7 +3425,7 @@ const RAW_RUNTIME_STATE =
|
||||
"packageDependencies": [\
|
||||
["jest-util", "npm:29.6.3"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
["ci-info", "npm:3.8.0"],\
|
||||
["graceful-fs", "npm:4.2.11"],\
|
||||
@@ -3438,7 +3438,7 @@ const RAW_RUNTIME_STATE =
|
||||
"packageDependencies": [\
|
||||
["jest-util", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
["ci-info", "npm:3.8.0"],\
|
||||
["graceful-fs", "npm:4.2.11"],\
|
||||
@@ -3469,7 +3469,7 @@ const RAW_RUNTIME_STATE =
|
||||
["jest-watcher", "npm:29.7.0"],\
|
||||
["@jest/test-result", "npm:29.7.0"],\
|
||||
["@jest/types", "npm:29.6.3"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["ansi-escapes", "npm:4.3.2"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
["emittery", "npm:0.13.1"],\
|
||||
@@ -3484,7 +3484,7 @@ const RAW_RUNTIME_STATE =
|
||||
"packageLocation": "../../../../cache/others/berry/cache/jest-worker-npm-29.7.0-4d3567fed6-10c0.zip/node_modules/jest-worker/",\
|
||||
"packageDependencies": [\
|
||||
["jest-worker", "npm:29.7.0"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["jest-util", "npm:29.7.0"],\
|
||||
["merge-stream", "npm:2.0.0"],\
|
||||
["supports-color", "npm:8.1.1"]\
|
||||
@@ -4276,10 +4276,10 @@ const RAW_RUNTIME_STATE =
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:7.7.1", {\
|
||||
"packageLocation": "../../../../cache/others/berry/cache/semver-npm-7.7.1-4572475307-10c0.zip/node_modules/semver/",\
|
||||
["npm:7.6.3", {\
|
||||
"packageLocation": "../../../../cache/others/berry/cache/semver-npm-7.6.3-57e82c14d5-10c0.zip/node_modules/semver/",\
|
||||
"packageDependencies": [\
|
||||
["semver", "npm:7.7.1"]\
|
||||
["semver", "npm:7.6.3"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
@@ -4606,17 +4606,17 @@ const RAW_RUNTIME_STATE =
|
||||
}]\
|
||||
]],\
|
||||
["ts-jest", [\
|
||||
["npm:29.2.6", {\
|
||||
"packageLocation": "../../../../cache/others/berry/cache/ts-jest-npm-29.2.6-81e5c09384-10c0.zip/node_modules/ts-jest/",\
|
||||
["npm:29.2.5", {\
|
||||
"packageLocation": "../../../../cache/others/berry/cache/ts-jest-npm-29.2.5-3012d53ff5-10c0.zip/node_modules/ts-jest/",\
|
||||
"packageDependencies": [\
|
||||
["ts-jest", "npm:29.2.6"]\
|
||||
["ts-jest", "npm:29.2.5"]\
|
||||
],\
|
||||
"linkType": "SOFT"\
|
||||
}],\
|
||||
["virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.6", {\
|
||||
"packageLocation": "./.yarn/__virtual__/ts-jest-virtual-9864a8688e/5/cache/others/berry/cache/ts-jest-npm-29.2.6-81e5c09384-10c0.zip/node_modules/ts-jest/",\
|
||||
["virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.5", {\
|
||||
"packageLocation": "./.yarn/__virtual__/ts-jest-virtual-be390007f7/5/cache/others/berry/cache/ts-jest-npm-29.2.5-3012d53ff5-10c0.zip/node_modules/ts-jest/",\
|
||||
"packageDependencies": [\
|
||||
["ts-jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.6"],\
|
||||
["ts-jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.5"],\
|
||||
["@babel/core", null],\
|
||||
["@jest/transform", null],\
|
||||
["@jest/types", null],\
|
||||
@@ -4637,8 +4637,8 @@ const RAW_RUNTIME_STATE =
|
||||
["json5", "npm:2.2.3"],\
|
||||
["lodash.memoize", "npm:4.1.2"],\
|
||||
["make-error", "npm:1.3.6"],\
|
||||
["semver", "npm:7.7.1"],\
|
||||
["typescript", "patch:typescript@npm%3A5.8.2#optional!builtin<compat/typescript>::version=5.8.2&hash=5786d5"],\
|
||||
["semver", "npm:7.6.3"],\
|
||||
["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=8c6c40"],\
|
||||
["yargs-parser", "npm:21.1.1"]\
|
||||
],\
|
||||
"packagePeers": [\
|
||||
@@ -4679,7 +4679,7 @@ const RAW_RUNTIME_STATE =
|
||||
["@tsconfig/node12", "npm:1.0.11"],\
|
||||
["@tsconfig/node14", "npm:1.0.3"],\
|
||||
["@tsconfig/node16", "npm:1.0.4"],\
|
||||
["@types/node", "npm:22.13.17"],\
|
||||
["@types/node", "npm:22.9.3"],\
|
||||
["@types/swc__core", null],\
|
||||
["@types/swc__wasm", null],\
|
||||
["@types/typescript", null],\
|
||||
@@ -4689,7 +4689,7 @@ const RAW_RUNTIME_STATE =
|
||||
["create-require", "npm:1.1.1"],\
|
||||
["diff", "npm:4.0.2"],\
|
||||
["make-error", "npm:1.3.6"],\
|
||||
["typescript", "patch:typescript@npm%3A5.8.2#optional!builtin<compat/typescript>::version=5.8.2&hash=5786d5"],\
|
||||
["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=8c6c40"],\
|
||||
["v8-compile-cache-lib", "npm:3.0.1"],\
|
||||
["yn", "npm:3.1.1"]\
|
||||
],\
|
||||
@@ -4724,19 +4724,19 @@ const RAW_RUNTIME_STATE =
|
||||
}]\
|
||||
]],\
|
||||
["typescript", [\
|
||||
["patch:typescript@npm%3A5.8.2#optional!builtin<compat/typescript>::version=5.8.2&hash=5786d5", {\
|
||||
"packageLocation": "../../../../cache/others/berry/cache/typescript-patch-26c53754b1-10c0.zip/node_modules/typescript/",\
|
||||
["patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=8c6c40", {\
|
||||
"packageLocation": "../../../../cache/others/berry/cache/typescript-patch-8964a48ba3-10c0.zip/node_modules/typescript/",\
|
||||
"packageDependencies": [\
|
||||
["typescript", "patch:typescript@npm%3A5.8.2#optional!builtin<compat/typescript>::version=5.8.2&hash=5786d5"]\
|
||||
["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=8c6c40"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
]],\
|
||||
["undici-types", [\
|
||||
["npm:6.20.0", {\
|
||||
"packageLocation": "../../../../cache/others/berry/cache/undici-types-npm-6.20.0-bd21e669af-10c0.zip/node_modules/undici-types/",\
|
||||
["npm:6.19.8", {\
|
||||
"packageLocation": "../../../../cache/others/berry/cache/undici-types-npm-6.19.8-9f12285b7a-10c0.zip/node_modules/undici-types/",\
|
||||
"packageDependencies": [\
|
||||
["undici-types", "npm:6.20.0"]\
|
||||
["undici-types", "npm:6.19.8"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
@@ -5367,7 +5367,7 @@ async function copyImpl(prelayout, postlayout, destinationFs, destination, sourc
|
||||
async function maybeLStat(baseFs, p) {
|
||||
try {
|
||||
return await baseFs.lstatPromise(p);
|
||||
} catch {
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -5626,7 +5626,7 @@ class CustomStatWatcher extends events.EventEmitter {
|
||||
stat() {
|
||||
try {
|
||||
return this.fakeFs.statSync(this.path, { bigint: this.bigint });
|
||||
} catch {
|
||||
} catch (error) {
|
||||
const statInstance = this.bigint ? new BigIntStatsEntry() : new StatEntry();
|
||||
return clearStats(statInstance);
|
||||
}
|
||||
@@ -5952,7 +5952,7 @@ class FakeFS {
|
||||
let current = Buffer.alloc(0);
|
||||
try {
|
||||
current = await this.readFilePromise(p);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
}
|
||||
if (Buffer.compare(current, content) === 0)
|
||||
return;
|
||||
@@ -5962,7 +5962,7 @@ class FakeFS {
|
||||
let current = ``;
|
||||
try {
|
||||
current = await this.readFilePromise(p, `utf8`);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
}
|
||||
const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content;
|
||||
if (current === normalizedContent)
|
||||
@@ -5980,7 +5980,7 @@ class FakeFS {
|
||||
let current = Buffer.alloc(0);
|
||||
try {
|
||||
current = this.readFileSync(p);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
}
|
||||
if (Buffer.compare(current, content) === 0)
|
||||
return;
|
||||
@@ -5990,7 +5990,7 @@ class FakeFS {
|
||||
let current = ``;
|
||||
try {
|
||||
current = this.readFileSync(p, `utf8`);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
}
|
||||
const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content;
|
||||
if (current === normalizedContent)
|
||||
@@ -6030,13 +6030,13 @@ class FakeFS {
|
||||
let pid;
|
||||
try {
|
||||
[pid] = await this.readJsonPromise(lockPath);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
return Date.now() - startTime < 500;
|
||||
}
|
||||
try {
|
||||
process.kill(pid, 0);
|
||||
return true;
|
||||
} catch {
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@@ -6049,7 +6049,7 @@ class FakeFS {
|
||||
try {
|
||||
await this.unlinkPromise(lockPath);
|
||||
continue;
|
||||
} catch {
|
||||
} catch (error2) {
|
||||
}
|
||||
}
|
||||
if (Date.now() - startTime < 60 * 1e3) {
|
||||
@@ -6069,7 +6069,7 @@ class FakeFS {
|
||||
try {
|
||||
await this.closePromise(fd);
|
||||
await this.unlinkPromise(lockPath);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7219,7 +7219,7 @@ class MountFS extends BasePortableFakeFS {
|
||||
let content;
|
||||
try {
|
||||
content = await sourceFs.readFilePromise(sourceP2);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${sourceP2}' -> '${destP2}'`), { code: `EINVAL` });
|
||||
}
|
||||
await destFs.writeFilePromise(destP2, content);
|
||||
@@ -7251,7 +7251,7 @@ class MountFS extends BasePortableFakeFS {
|
||||
let content;
|
||||
try {
|
||||
content = sourceFs.readFileSync(sourceP2);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${sourceP2}' -> '${destP2}'`), { code: `EINVAL` });
|
||||
}
|
||||
destFs.writeFileSync(destP2, content);
|
||||
@@ -7564,7 +7564,7 @@ class MountFS extends BasePortableFakeFS {
|
||||
if (this.notMount.has(filePath))
|
||||
continue;
|
||||
try {
|
||||
if (this.typeCheck !== null && (this.baseFs.statSync(filePath).mode & fs.constants.S_IFMT) !== this.typeCheck) {
|
||||
if (this.typeCheck !== null && (this.baseFs.lstatSync(filePath).mode & fs.constants.S_IFMT) !== this.typeCheck) {
|
||||
this.notMount.add(filePath);
|
||||
continue;
|
||||
}
|
||||
@@ -8166,7 +8166,7 @@ function patchFs(patchedFs, fakeFs) {
|
||||
setupFn(patchedFs, `existsSync`, (p) => {
|
||||
try {
|
||||
return fakeFs.existsSync(p);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
@@ -9527,7 +9527,7 @@ class ZipFS extends BasePortableFakeFS {
|
||||
let resolvedP;
|
||||
try {
|
||||
resolvedP = this.resolveFilename(`stat '${p}'`, p, void 0, false);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
if (resolvedP === void 0)
|
||||
@@ -10568,7 +10568,7 @@ Require stack:
|
||||
} else {
|
||||
resolution = originalFindPath.call(require$$0.Module, request, [path], isMain);
|
||||
}
|
||||
} catch {
|
||||
} catch (error) {
|
||||
continue;
|
||||
}
|
||||
if (resolution) {
|
||||
@@ -10577,20 +10577,18 @@ Require stack:
|
||||
}
|
||||
return false;
|
||||
};
|
||||
if (!process.features.require_module) {
|
||||
const originalExtensionJSFunction = require$$0.Module._extensions[`.js`];
|
||||
require$$0.Module._extensions[`.js`] = function(module, filename) {
|
||||
if (filename.endsWith(`.js`)) {
|
||||
const pkg = readPackageScope(filename);
|
||||
if (pkg && pkg.data?.type === `module`) {
|
||||
const err = ERR_REQUIRE_ESM(filename, module.parent?.filename);
|
||||
Error.captureStackTrace(err);
|
||||
throw err;
|
||||
}
|
||||
const originalExtensionJSFunction = require$$0.Module._extensions[`.js`];
|
||||
require$$0.Module._extensions[`.js`] = function(module, filename) {
|
||||
if (filename.endsWith(`.js`)) {
|
||||
const pkg = readPackageScope(filename);
|
||||
if (pkg && pkg.data?.type === `module`) {
|
||||
const err = ERR_REQUIRE_ESM(filename, module.parent?.filename);
|
||||
Error.captureStackTrace(err);
|
||||
throw err;
|
||||
}
|
||||
originalExtensionJSFunction.call(this, module, filename);
|
||||
};
|
||||
}
|
||||
}
|
||||
originalExtensionJSFunction.call(this, module, filename);
|
||||
};
|
||||
const originalDlopen = process.dlopen;
|
||||
process.dlopen = function(...args) {
|
||||
const [module, filename, ...rest] = args;
|
||||
@@ -11651,7 +11649,7 @@ function makeApi(runtimeState, opts) {
|
||||
try {
|
||||
candidates.push(unqualifiedPath);
|
||||
stat = opts.fakeFs.statSync(unqualifiedPath);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
}
|
||||
if (stat && !stat.isDirectory())
|
||||
return opts.fakeFs.realpathSync(unqualifiedPath);
|
||||
@@ -11659,7 +11657,7 @@ function makeApi(runtimeState, opts) {
|
||||
let pkgJson;
|
||||
try {
|
||||
pkgJson = JSON.parse(opts.fakeFs.readFileSync(ppath.join(unqualifiedPath, Filename.manifest), `utf8`));
|
||||
} catch {
|
||||
} catch (error) {
|
||||
}
|
||||
let nextUnqualifiedPath;
|
||||
if (pkgJson && pkgJson.main)
|
||||
|
18
.pnp.loader.mjs
generated
18
.pnp.loader.mjs
generated
@@ -131,7 +131,7 @@ async function copyImpl(prelayout, postlayout, destinationFs, destination, sourc
|
||||
async function maybeLStat(baseFs, p) {
|
||||
try {
|
||||
return await baseFs.lstatPromise(p);
|
||||
} catch {
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -482,7 +482,7 @@ class FakeFS {
|
||||
let current = Buffer.alloc(0);
|
||||
try {
|
||||
current = await this.readFilePromise(p);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
}
|
||||
if (Buffer.compare(current, content) === 0)
|
||||
return;
|
||||
@@ -492,7 +492,7 @@ class FakeFS {
|
||||
let current = ``;
|
||||
try {
|
||||
current = await this.readFilePromise(p, `utf8`);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
}
|
||||
const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content;
|
||||
if (current === normalizedContent)
|
||||
@@ -510,7 +510,7 @@ class FakeFS {
|
||||
let current = Buffer.alloc(0);
|
||||
try {
|
||||
current = this.readFileSync(p);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
}
|
||||
if (Buffer.compare(current, content) === 0)
|
||||
return;
|
||||
@@ -520,7 +520,7 @@ class FakeFS {
|
||||
let current = ``;
|
||||
try {
|
||||
current = this.readFileSync(p, `utf8`);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
}
|
||||
const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content;
|
||||
if (current === normalizedContent)
|
||||
@@ -560,13 +560,13 @@ class FakeFS {
|
||||
let pid;
|
||||
try {
|
||||
[pid] = await this.readJsonPromise(lockPath);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
return Date.now() - startTime < 500;
|
||||
}
|
||||
try {
|
||||
process.kill(pid, 0);
|
||||
return true;
|
||||
} catch {
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@@ -579,7 +579,7 @@ class FakeFS {
|
||||
try {
|
||||
await this.unlinkPromise(lockPath);
|
||||
continue;
|
||||
} catch {
|
||||
} catch (error2) {
|
||||
}
|
||||
}
|
||||
if (Date.now() - startTime < 60 * 1e3) {
|
||||
@@ -599,7 +599,7 @@ class FakeFS {
|
||||
try {
|
||||
await this.closePromise(fd);
|
||||
await this.unlinkPromise(lockPath);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,2 +1,2 @@
|
||||
nodejs 22.14.0
|
||||
nodejs 22.11.0
|
||||
yarn 1.22.22
|
||||
|
File diff suppressed because one or more lines are too long
@@ -3,4 +3,4 @@ plugins:
|
||||
path: .yarn/plugins/@yarnpkg/plugin-outdated.cjs
|
||||
spec: "https://go.mskelton.dev/yarn-outdated/v4"
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.7.0.cjs
|
||||
yarnPath: .yarn/releases/yarn-4.5.3.cjs
|
||||
|
@@ -1,10 +1,10 @@
|
||||
FROM node:22.14.0-slim
|
||||
FROM node:22.11.0-slim
|
||||
|
||||
WORKDIR /opt/app
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get -y install make \
|
||||
&& yarn set version 4.6.0
|
||||
&& yarn set version 4.5.3
|
||||
|
||||
COPY ./Makefile ./
|
||||
COPY ./package.json ./
|
||||
|
2
Makefile
2
Makefile
@@ -6,7 +6,7 @@ asdf_install:
|
||||
|
||||
.PHONY: yarn_setup
|
||||
yarn_setup:
|
||||
@yarn set version 4.6.0
|
||||
@yarn set version 4.5.3
|
||||
@yarn init -2
|
||||
@yarn add typescript jest @types/jest ts-node ts-jest
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "clean-architecture",
|
||||
"packageManager": "yarn@4.7.0",
|
||||
"packageManager": "yarn@4.5.3",
|
||||
"dependencies": {
|
||||
"@types/jest": "^29.5.13",
|
||||
"@types/node": "^22.7.5",
|
||||
|
44
yarn.lock
44
yarn.lock
@@ -904,11 +904,11 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"@types/node@npm:*, @types/node@npm:^22.7.5":
|
||||
version: 22.13.17
|
||||
resolution: "@types/node@npm:22.13.17"
|
||||
version: 22.9.3
|
||||
resolution: "@types/node@npm:22.9.3"
|
||||
dependencies:
|
||||
undici-types: "npm:~6.20.0"
|
||||
checksum: 10c0/77a052fec0fe02f60557e1c5f3f28eb09cd9bee426be88328a94689150a3c0df5b4b6b69fad28157fb34521693dad0b311ecd7f613845d681ff973991310c20e
|
||||
undici-types: "npm:~6.19.8"
|
||||
checksum: 10c0/954ec72bf29436ea62425a9563914a9c1e93f97b18194acd51d74d13998a701977547ed2985ed3a0e97211b785436d28377116e5f613bfcf3182d9bd81d784dc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3411,12 +3411,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"semver@npm:^7.7.1":
|
||||
version: 7.7.1
|
||||
resolution: "semver@npm:7.7.1"
|
||||
"semver@npm:^7.6.3":
|
||||
version: 7.6.3
|
||||
resolution: "semver@npm:7.6.3"
|
||||
bin:
|
||||
semver: bin/semver.js
|
||||
checksum: 10c0/fd603a6fb9c399c6054015433051bdbe7b99a940a8fb44b85c2b524c4004b023d7928d47cb22154f8d054ea7ee8597f586605e05b52047f048278e4ac56ae958
|
||||
checksum: 10c0/88f33e148b210c153873cb08cfe1e281d518aaa9a666d4d148add6560db5cd3c582f3a08ccb91f38d5f379ead256da9931234ed122057f40bb5766e65e58adaf
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3704,8 +3704,8 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"ts-jest@npm:^29.2.5":
|
||||
version: 29.2.6
|
||||
resolution: "ts-jest@npm:29.2.6"
|
||||
version: 29.2.5
|
||||
resolution: "ts-jest@npm:29.2.5"
|
||||
dependencies:
|
||||
bs-logger: "npm:^0.2.6"
|
||||
ejs: "npm:^3.1.10"
|
||||
@@ -3714,7 +3714,7 @@ __metadata:
|
||||
json5: "npm:^2.2.3"
|
||||
lodash.memoize: "npm:^4.1.2"
|
||||
make-error: "npm:^1.3.6"
|
||||
semver: "npm:^7.7.1"
|
||||
semver: "npm:^7.6.3"
|
||||
yargs-parser: "npm:^21.1.1"
|
||||
peerDependencies:
|
||||
"@babel/core": ">=7.0.0-beta.0 <8"
|
||||
@@ -3736,7 +3736,7 @@ __metadata:
|
||||
optional: true
|
||||
bin:
|
||||
ts-jest: cli.js
|
||||
checksum: 10c0/2a79bdb2631bbd004cd6ec171d62dc3681b86e7d1c20eece7f56e7c3df11a0f5a14f4831960b1ba8d1836787395c8f9dcbd084fd7f59246bbee8048feb93f892
|
||||
checksum: 10c0/acb62d168faec073e64b20873b583974ba8acecdb94681164eb346cef82ade8fb481c5b979363e01a97ce4dd1e793baf64d9efd90720bc941ad7fc1c3d6f3f68
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3793,29 +3793,29 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"typescript@npm:^5.6.2":
|
||||
version: 5.8.2
|
||||
resolution: "typescript@npm:5.8.2"
|
||||
version: 5.6.3
|
||||
resolution: "typescript@npm:5.6.3"
|
||||
bin:
|
||||
tsc: bin/tsc
|
||||
tsserver: bin/tsserver
|
||||
checksum: 10c0/5c4f6fbf1c6389b6928fe7b8fcd5dc73bb2d58cd4e3883f1d774ed5bd83b151cbac6b7ecf11723de56d4676daeba8713894b1e9af56174f2f9780ae7848ec3c6
|
||||
checksum: 10c0/44f61d3fb15c35359bc60399cb8127c30bae554cd555b8e2b46d68fa79d680354b83320ad419ff1b81a0bdf324197b29affe6cc28988cd6a74d4ac60c94f9799
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typescript@patch:typescript@npm%3A^5.6.2#optional!builtin<compat/typescript>":
|
||||
version: 5.8.2
|
||||
resolution: "typescript@patch:typescript@npm%3A5.8.2#optional!builtin<compat/typescript>::version=5.8.2&hash=5786d5"
|
||||
version: 5.6.3
|
||||
resolution: "typescript@patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=8c6c40"
|
||||
bin:
|
||||
tsc: bin/tsc
|
||||
tsserver: bin/tsserver
|
||||
checksum: 10c0/5448a08e595cc558ab321e49d4cac64fb43d1fa106584f6ff9a8d8e592111b373a995a1d5c7f3046211c8a37201eb6d0f1566f15cdb7a62a5e3be01d087848e2
|
||||
checksum: 10c0/7c9d2e07c81226d60435939618c91ec2ff0b75fbfa106eec3430f0fcf93a584bc6c73176676f532d78c3594fe28a54b36eb40b3d75593071a7ec91301533ace7
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"undici-types@npm:~6.20.0":
|
||||
version: 6.20.0
|
||||
resolution: "undici-types@npm:6.20.0"
|
||||
checksum: 10c0/68e659a98898d6a836a9a59e6adf14a5d799707f5ea629433e025ac90d239f75e408e2e5ff086afc3cace26f8b26ee52155293564593fbb4a2f666af57fc59bf
|
||||
"undici-types@npm:~6.19.8":
|
||||
version: 6.19.8
|
||||
resolution: "undici-types@npm:6.19.8"
|
||||
checksum: 10c0/078afa5990fba110f6824823ace86073b4638f1d5112ee26e790155f481f2a868cc3e0615505b6f4282bdf74a3d8caad715fd809e870c2bb0704e3ea6082f344
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
Reference in New Issue
Block a user