fix: the tsconfig spec generated for library contains several issues #13468
Annotations
2 errors
Test:
packages/@o3r/workspace/schematics/index.it.spec.ts#L137
expect(received).not.toThrow()
Error name: "Error"
Error message: "Command failed: yarn run test
STDERR:
lerna notice cli v8.1.9
lerna info ci enabled·
OUTPUT:
,·
Lerna (powered by Nx) Running target test for 3 projects:···
- test-app·
- test-lib·
- untouched-lib·······
::group::❌ > untouched-lib:test···
Error: Your application tried to access ts-jest, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
Required package: ts-jest
Required by: D:\\a\\otter\\it-tests\\test-app-workspace4\\libs\\untouched-lib\\
Require stack:
- D:\\a\\otter\\it-tests\\test-app-workspace4\\libs\\untouched-lib\\jest.config.js
- D:\\a\\otter\\otter\\.cache\\test-app\\cache\\jest-util-npm-29.7.0-ff1d59714b-10c0.zip\\node_modules\\jest-util\\build\\requireOrImportModule.js
- D:\\a\\otter\\otter\\.cache\\test-app\\cache\\jest-util-npm-29.7.0-ff1d59714b-10c0.zip\\node_modules\\jest-util\\build\\index.js
- D:\\a\\otter\\it-tests\\test-app-workspace4\\.yarn\\__virtual__\\@jest-core-virtual-9990ebc370\\3\\otter\\.cache\\test-app\\cache\\@jest-core-npm-29.7.0-cef60d74c4-10c0.zip\\node_modules\\@jest\\core\\build\\FailedTestsInteractiveMode.js
- D:\\a\\otter\\it-tests\\test-app-workspace4\\.yarn\\__virtual__\\@jest-core-virtual-9990ebc370\\3\\otter\\.cache\\test-app\\cache\\@jest-core-npm-29.7.0-cef60d74c4-10c0.zip\\node_modules\\@jest\\core\\build\\plugins\\FailedTestsInteractive.js
- D:\\a\\otter\\it-tests\\test-app-workspace4\\.yarn\\__virtual__\\@jest-core-virtual-9990ebc370\\3\\otter\\.cache\\test-app\\cache\\@jest-core-npm-29.7.0-cef60d74c4-10c0.zip\\node_modules\\@jest\\core\\build\\watch.js
- D:\\a\\otter\\it-tests\\test-app-workspace4\\.yarn\\__virtual__\\@jest-core-virtual-9990ebc370\\3\\otter\\.cache\\test-app\\cache\\@jest-core-npm-29.7.0-cef60d74c4-10c0.zip\\node_modules\\@jest\\core\\build\\cli\\index.js
- D:\\a\\otter\\it-tests\\test-app-workspace4\\.yarn\\__virtual__\\@jest-core-virtual-9990ebc370\\3\\otter\\.cache\\test-app\\cache\\@jest-core-npm-29.7.0-cef60d74c4-10c0.zip\\node_modules\\@jest\\core\\build\\index.js
- D:\\a\\otter\\it-tests\\test-app-workspace4\\.yarn\\__virtual__\\jest-cli-virtual-d20567bc42\\3\\otter\\.cache\\test-app\\cache\\jest-cli-npm-29.7.0-9adb356180-10c0.zip\\node_modules\\jest-cli\\build\\run.js
- D:\\a\\otter\\it-tests\\test-app-workspace4\\.yarn\\__virtual__\\jest-cli-virtual-d20567bc42\\3\\otter\\.cache\\test-app\\cache\\jest-cli-npm-29.7.0-9adb356180-10c0.zip\\node_modules\\jest-cli\\build\\index.js
- D:\\a\\otter\\it-tests\\test-app-workspace4\\.yarn\\__virtual__\\jest-cli-virtual-d20567bc42\\3\\otter\\.cache\\test-app\\cache\\jest-cli-npm-29.7.0-9adb356180-10c0.zip\\node_modules\\jest-cli\\bin\\jest.js
- D:\\a\\otter\\it-tests\\test-app-workspace4\\.yarn\\__virtual__\\jest-virtual-cbaa8e867a\\3\\otter\\.cache\\test-app\\cache\\jest-npm-29.7.0-d8dd095b81-10c0.zip\\node_modules\\jest\\bin\\jest.js
at require$$0.Module._resolveFilename (D:\\a\\otter\\it-tests\\test-app-workspace4\\.pnp.cjs:27191:13)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at require$$0.Module._load (D:\\a\\otter\\it-tests\\test-app-workspace4\\.pnp.cjs:27082:31)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (D:\\a\\otter\\it-tests\\test-app-workspace4\\libs\\untouched-lib\\jest.config.js:1:37)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at require$$0.Module._extensions..js (D:\\a\\otter\\it-tests\\test-app-workspace4\\.pnp.cjs:27235:35)
at Module.load (node:internal/modules/cjs/loader:1288:32)
::endgroup::·
::group::❌ > test-lib:test···
Error: Your application tried to access ts-jest, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
Required package: ts-jest
Required by: D:\\a\\otter\\it-tests\\test-app-workspace4\\libs\\test-lib\\
Require stack:
- D:\\a\\otter\\it-tests\\test-app-workspace4\\libs\\test-lib\\jest.
|
Test
Process completed with exit code 1.
|
Loading