Created
February 10, 2025 23:05
-
-
Save djzager/738c769d274c40f49bbe426c526ee7a1 to your computer and use it in GitHub Desktop.
NPM Run Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
konveyor-editor-extensions on incidents-on-windows [$!⇕] via v23.7.0 took 24s | |
➜ npm run test | |
> [email protected] test | |
> npm run lint && npm run build && npm run test --workspaces --if-present | |
> [email protected] lint | |
> eslint ./scripts && npm run lint --workspaces --if-present | |
> @editor-extensions/[email protected] lint | |
> eslint . | |
> @editor-extensions/[email protected] lint | |
> eslint . | |
/Users/dzager/Workspace/konveyor-editor-extensions/webview-ui/src/components/AnalysisResults.tsx | |
12:38 warning Replace `⏎··········No·results·yet.·Start·the·analysis·to·see·results.⏎········` with `No·results·yet.·Start·the·analysis·to·see·results.` prettier/prettier | |
/Users/dzager/Workspace/konveyor-editor-extensions/webview-ui/src/components/SolutionCard.tsx | |
38:56 warning Delete `{"·"}⏎···········` prettier/prettier | |
/Users/dzager/Workspace/konveyor-editor-extensions/webview-ui/src/utils/__tests__/incidentRelativeDir.test.ts | |
5:1 warning Unused eslint-disable directive (no problems were reported from 'no-useless-escape') | |
✖ 3 problems (0 errors, 3 warnings) | |
0 errors and 3 warnings potentially fixable with the `--fix` option. | |
> [email protected] lint | |
> eslint . | |
/Users/dzager/Workspace/konveyor-editor-extensions/vscode/src/issueView/issueModel.ts | |
158:10 warning 'item' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars | |
✖ 1 problem (0 errors, 1 warning) | |
> [email protected] build | |
> npm run build --workspaces --if-present | |
> @editor-extensions/[email protected] prebuild | |
> npm run clean | |
> @editor-extensions/[email protected] clean | |
> rimraf dist | |
> @editor-extensions/[email protected] build | |
> vite build && tsc | |
vite v5.4.11 building for production... | |
✓ 5 modules transformed. | |
dist/index.mjs 1.49 kB │ gzip: 0.69 kB │ map: 2.96 kB | |
dist/index.cjs 1.85 kB │ gzip: 0.77 kB │ map: 2.97 kB | |
✓ built in 38ms | |
> @editor-extensions/[email protected] prebuild | |
> npm run clean | |
> @editor-extensions/[email protected] clean | |
> rimraf dist build | |
> @editor-extensions/[email protected] build | |
> tsc && vite build | |
vite v5.4.11 building for production... | |
✓ 3768 modules transformed. | |
build/index.html 0.38 kB │ gzip: 0.25 kB | |
build/assets/pf-v6-pficon.woff2 18.45 kB | |
build/assets/RedHatMonoVF.woff2 29.14 kB | |
build/assets/RedHatMonoVF-Italic.woff2 32.67 kB | |
build/assets/RedHatTextVF.woff2 38.46 kB | |
build/assets/RedHatDisplayVF.woff2 39.76 kB | |
build/assets/RedHatTextVF-Italic.woff2 41.17 kB | |
build/assets/RedHatDisplayVF-Italic.woff2 41.54 kB | |
build/assets/fa-solid-900.woff2 79.10 kB | |
build/assets/index.css 2,101.29 kB │ gzip: 182.20 kB | |
build/assets/index.js 662.55 kB │ gzip: 195.40 kB │ map: 2,603.70 kB | |
(!) Some chunks are larger than 500 kB after minification. Consider: | |
- Using dynamic import() to code-split the application | |
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks | |
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. | |
✓ built in 2.06s | |
> [email protected] prebuild | |
> npm run clean | |
> [email protected] clean | |
> rimraf out | |
> [email protected] build | |
> npm run compile | |
> [email protected] compile | |
> tsc && webpack --mode production | |
[webpack-cli] Compiler starting... | |
[webpack-cli] Compiler is using config: '/Users/dzager/Workspace/konveyor-editor-extensions/vscode/webpack.config.js' | |
[webpack-cli] Compiler finished | |
assets by status 30.5 KiB [compared for emit] 48 assets | |
assets by path webview/ 5.42 MiB | |
assets by path webview/assets/*.woff2 313 KiB | |
asset webview/assets/fa-solid-900.woff2 77.2 KiB [emitted] [from: ../webview-ui/build/assets/fa-solid-900.woff2] [copied] | |
+ 7 assets | |
asset webview/assets/index.js.map 2.48 MiB [emitted] [from: ../webview-ui/build/assets/index.js.map] [copied] | |
asset webview/assets/index.css 2.01 MiB [emitted] [from: ../webview-ui/build/assets/index.css] [copied] | |
asset webview/assets/index.js 642 KiB [emitted] [from: ../webview-ui/build/assets/index.js] [copied] [minimized] 1 related asset | |
asset webview/index.html 375 bytes [emitted] [from: ../webview-ui/build/index.html] [copied] | |
assets by path test/testData/*.yaml 67.1 KiB | |
asset test/testData/ruleset.yaml 62.5 KiB [emitted] [from: src/test/testData/ruleset.yaml] [copied] | |
asset test/testData/output-data.yaml 4.57 KiB [emitted] [from: src/test/testData/output-data.yaml] [copied] | |
asset extension.js 453 KiB [emitted] [minimized] (name: extension) 2 related assets | |
orphan modules 28.8 KiB [orphan] 33 modules | |
runtime modules 937 bytes 4 modules | |
modules by path ../node_modules/ 1.12 MiB | |
cacheable modules 1.08 MiB 245 modules | |
../node_modules/uuid/dist/esm-node/index.js + 21 modules 18.6 KiB [not cacheable] [built] [code generated] | |
../node_modules/globby/index.js + 11 modules 17.7 KiB [not cacheable] [built] [code generated] | |
modules by path ./src/ 170 KiB 42 modules | |
+ 18 modules | |
webpack 5.96.1 compiled successfully in 3174 ms | |
> @editor-extensions/[email protected] test | |
> mocha | |
Verify tests can run | |
✔ true should be truthy | |
useViolations hook | |
✔ undefined input = empty array | |
✔ empty array = empty array | |
✔ ruleset without violations = empty array | |
✔ ruleset with violations = array of violations | |
getIncidentRelativeDir | |
1) correctly computes relative path (POSIX) | |
2) correctly computes relative path (Windows) | |
3) handles Windows paths with backslashes | |
4) handles Windows paths with backslashes v2 | |
5 passing (15ms) | |
4 failing | |
1) getIncidentRelativeDir | |
correctly computes relative path (POSIX): | |
Error: expect(received).toBe(expected) // Object.is equality | |
Expected: "src" | |
Received: "/src" | |
at Context.<anonymous> (src/utils/__tests__/incidentRelativeDir.test.ts:17:61) | |
at process.processImmediate (node:internal/timers:511:21) | |
2) getIncidentRelativeDir | |
correctly computes relative path (Windows): | |
Error: expect(received).toBe(expected) // Object.is equality | |
Expected: "src" | |
Received: "/src" | |
at Context.<anonymous> (src/utils/__tests__/incidentRelativeDir.test.ts:24:61) | |
at process.processImmediate (node:internal/timers:511:21) | |
3) getIncidentRelativeDir | |
handles Windows paths with backslashes: | |
Error: expect(received).toBe(expected) // Object.is equality | |
Expected: "src" | |
Received: "/src" | |
at Context.<anonymous> (src/utils/__tests__/incidentRelativeDir.test.ts:31:61) | |
at process.processImmediate (node:internal/timers:511:21) | |
4) getIncidentRelativeDir | |
handles Windows paths with backslashes v2: | |
Error: expect(received).toBe(expected) // Object.is equality | |
Expected: "src" | |
Received: "/src" | |
at Context.<anonymous> (src/utils/__tests__/incidentRelativeDir.test.ts:37:61) | |
at process.processImmediate (node:internal/timers:511:21) | |
npm error Lifecycle script `test` failed with error: | |
npm error code 4 | |
npm error path /Users/dzager/Workspace/konveyor-editor-extensions/webview-ui | |
npm error workspace @editor-extensions/[email protected] | |
npm error location /Users/dzager/Workspace/konveyor-editor-extensions/webview-ui | |
npm error command failed | |
npm error command sh -c mocha | |
> [email protected] test | |
> npm run compile && npm run test:local && vscode-test | |
> [email protected] compile | |
> tsc && webpack --mode production | |
[webpack-cli] Compiler starting... | |
[webpack-cli] Compiler is using config: '/Users/dzager/Workspace/konveyor-editor-extensions/vscode/webpack.config.js' | |
[webpack-cli] Compiler finished | |
assets by path webview/ 5.42 MiB 12 assets | |
assets by path data/*.ts 5.18 KiB 8 assets | |
assets by path utilities/*.ts 4.8 KiB 7 assets | |
assets by path issueView/ 4.04 KiB 7 assets | |
assets by path *.ts 4.31 KiB 7 assets | |
assets by path diffView/*.ts 3.9 KiB 6 assets | |
assets by path client/*.ts 7.16 KiB 5 assets | |
assets by path test/ 67.1 KiB 4 assets | |
assets by path analysis/ 700 bytes | |
asset analysis/runAnalysis.d.ts 275 bytes [compared for emit] | |
+ 3 assets | |
asset extension.js 453 KiB [emitted] [minimized] (name: extension) 2 related assets | |
asset helpers/Extension.d.ts 327 bytes [compared for emit] | |
asset config/labels.d.ts 92 bytes [compared for emit] | |
orphan modules 28.8 KiB [orphan] 33 modules | |
runtime modules 937 bytes 4 modules | |
modules by path ../node_modules/ 1.12 MiB | |
cacheable modules 1.08 MiB 245 modules | |
../node_modules/uuid/dist/esm-node/index.js + 21 modules 18.6 KiB [not cacheable] [built] [code generated] | |
../node_modules/globby/index.js + 11 modules 17.7 KiB [not cacheable] [built] [code generated] | |
modules by path ./src/ 170 KiB 42 modules | |
+ 18 modules | |
webpack 5.96.1 compiled successfully in 3076 ms | |
> [email protected] test:local | |
> mocha | |
analysis data transformations | |
✔ uses first line if line number is missing or incorrect in the incident | |
✔ filters out incidents without message | |
✔ filters out incidents with incorrect URI | |
3 passing (4ms) | |
✔ Validated version: 1.97.0 | |
✔ Found existing install in /Users/dzager/Workspace/konveyor-editor-extensions/vscode/.vscode-test/vscode-darwin-arm64-1.97.0 | |
[main 2025-02-10T23:01:23.269Z] update#setState disabled | |
[main 2025-02-10T23:01:23.270Z] update#ctor - updates are disabled by the environment | |
Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.vscode-selfhost-test-provider' wants API proposal 'attributableCoverage' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. | |
Via 'product.json#extensionEnabledApiProposals' extension 'ms-python.python' wants API proposal 'contribIssueReporter' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. | |
Via 'product.json#extensionEnabledApiProposals' extension 'ms-python.debugpy' wants API proposal 'contribIssueReporter' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. | |
Via 'product.json#extensionEnabledApiProposals' extension 'redhat.java' wants API proposal 'documentPaste' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. | |
2025-02-10 18:01:23.571 Code Helper (Renderer)[27151:513671] CoreText note: Client requested name ".NewYork-Regular", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:]. | |
2025-02-10 18:01:23.571 Code Helper (Renderer)[27151:513671] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug. | |
Started local extension host with pid 27164. | |
Loading development extension at /Users/dzager/Workspace/konveyor-editor-extensions/vscode | |
Extension 'konveyor.konveyor-ai CANNOT USE these API proposals 'contribDiffEditorGutterToolBarMenus'. You MUST start in extension development mode or use the --enable-proposed-api command line flag | |
[konveyor.konveyor-ai]: diffEditor/gutter/selection is a proposed menu identifier. It requires 'package.json#enabledApiProposals: ["contribDiffEditorGutterToolBarMenus"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api konveyor.konveyor-ai | |
[konveyor.konveyor-ai]: diffEditor/gutter/hunk is a proposed menu identifier. It requires 'package.json#enabledApiProposals: ["contribDiffEditorGutterToolBarMenus"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api konveyor.konveyor-ai | |
Settings Sync: Account status changed from uninitialized to unavailable | |
Extension Test Suite | |
✔ Sample test | |
Extension Test Suite | |
✔ processIncidents should populate diagnostics correctly | |
2 passing (23ms) | |
[main 2025-02-10T23:01:24.131Z] Extension host with pid 27164 exited with code: 0, signal: unknown. | |
Exit code: 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment