feat(it-tests): test schematics with yarn 1 #7885
Annotations
2 errors and 1 warning
Test:
packages/@ama-sdk/create/src/index.it.spec.ts#L125
expect(received).not.toThrow()
Error name: "Error"
Error message: "Command failed: npm create @ama-sdk999.0.0 typescript @my-test/sdk -- --exact-o3r-version --package-manager yarn --spec-path D:\\a\\otter\\it-tests\\ama-sdk-create\\test-create-sdk4\\swagger-spec.yml
STDERR:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@ama-sdk999.0.0%2fcreate - Not found
npm ERR! 404·
npm ERR! 404 '@ama-sdk999.0.0/create@*' is not in this registry.
npm ERR! 404·
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.·
npm ERR! A complete log of this run can be found in: D:\\a\\otter\\otter\\.cache\\test-app\\npm-cache\\_logs\\2024-03-27T13_12_31_839Z-debug-0.log·
OUTPUT:
,,npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@ama-sdk999.0.0%2fcreate - Not found
npm ERR! 404·
npm ERR! 404 '@ama-sdk999.0.0/create@*' is not in this registry.
npm ERR! 404·
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.·
npm ERR! A complete log of this run can be found in: D:\\a\\otter\\otter\\.cache\\test-app\\npm-cache\\_logs\\2024-03-27T13_12_31_839Z-debug-0.log
"
106 | // Yarn doesn't log errors on stderr, so we need to get them from stdout to have them in the reports
107 | // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
> 108 | throw new Error(`Command failed: ${args.join(' ') }\nSTDERR:\n${err.stderr?.toString() || ''}\nOUTPUT:\n${err.output?.toString() || ''}`);
| ^
109 | }
110 | }
111 |
at execCmd (packages/@o3r/test-helpers/src/utilities/package-manager.ts:108:11)
at packageManagerCreate (packages/@o3r/test-helpers/src/utilities/package-manager.ts:130:10)
at packages/@ama-sdk/create/src/index.it.spec.ts:121:27
at Object.<anonymous> (.yarn/cache/expect-npm-29.7.0-62e9f7979e-63f97bc51f.zip/node_modules/expect/build/toThrowMatchers.js:74:11)
at Object.throwingMatcher [as toThrow] (.yarn/cache/expect-npm-29.7.0-62e9f7979e-63f97bc51f.zip/node_modules/expect/build/index.js:320:21)
at Object.<anonymous> (packages/@ama-sdk/create/src/index.it.spec.ts:125:11)
at Object.<anonymous> (src/index.it.spec.ts:125:11)
|
Test
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading