-
I went to pull down the latest for the mutliple grammar import fix (#882) using a fresh clone and I seem to be having issues. Not sure if this is on my end or not ... same results in Linux (WSL), Windows, and Stackblitz. ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Suites 11 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
FAIL examples/domainmodel/test/cross-refs.test.ts [ examples/domainmodel/test/cross-refs.test.ts ]
FAIL examples/domainmodel/test/domainmodel-cli.test.ts [ examples/domainmodel/test/domainmodel-cli.test.ts ]
FAIL examples/domainmodel/test/formatting.test.ts [ examples/domainmodel/test/formatting.test.ts ]
FAIL examples/domainmodel/test/nodelocator.test.ts [ examples/domainmodel/test/nodelocator.test.ts ]
FAIL examples/domainmodel/test/refs-index.test.ts [ examples/domainmodel/test/refs-index.test.ts ]
FAIL examples/requirements/test/generator.test.ts [ examples/requirements/test/generator.test.ts ]
FAIL examples/requirements/test/validator.test.ts [ examples/requirements/test/validator.test.ts ]
FAIL examples/statemachine/test/generator.test.ts [ examples/statemachine/test/generator.test.ts ]
FAIL packages/generator-langium/test/yeoman-generator.test.ts [ packages/generator-langium/test/yeoman-generator.test.ts ]
FAIL packages/langium-cli/test/generator/module-generator.test.ts [ packages/langium-cli/test/generator/module-generator.test.ts ]
FAIL packages/langium-cli/test/generator/types-generator.test.ts [ packages/langium-cli/test/generator/types-generator.test.ts ]
Error: Failed to resolve entry for package "langium". The package may have incorrect main/module/exports specified in its package.json.
❯ packageEntryFailure node_modules/vite/dist/node/chunks/dep-3007b26d.js:22004:11
❯ resolvePackageEntry node_modules/vite/dist/node/chunks/dep-3007b26d.js:22001:5
❯ tryNodeResolve node_modules/vite/dist/node/chunks/dep-3007b26d.js:21736:20
❯ Context.resolveId node_modules/vite/dist/node/chunks/dep-3007b26d.js:21487:28
❯ Object.resolveId node_modules/vite/dist/node/chunks/dep-3007b26d.js:41587:46
❯ TransformContext.resolve node_modules/vite/dist/node/chunks/dep-3007b26d.js:41334:23
❯ normalizeUrl node_modules/vite/dist/node/chunks/dep-3007b26d.js:39685:34
❯ TransformContext.transform node_modules/vite/dist/node/chunks/dep-3007b26d.js:39826:47
❯ Object.transform node_modules/vite/dist/node/chunks/dep-3007b26d.js:41660:30
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/13]⎯
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
FAIL examples/arithmetics/test/arithmetics-cli.test.ts > Test the arithmetics CLI > Generator command returns code 0
AssertionError: Result code should be 0: expected 1 to be +0 // Object.is equality
❯ examples/arithmetics/test/arithmetics-cli.test.ts:20:56
18| console.log('Error message:', result.error);
19| }
20| expect(result.code, 'Result code should be 0').toBe(0);
| ^
21| });
22| });
- Expected "0"
+ Received "1"
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/13]⎯
FAIL examples/statemachine/test/statemachine-cli.test.ts > Test the statemachine CLI > Generator command returns code 0 and creates expected files
AssertionError: expected 1 to be +0 // Object.is equality
❯ examples/statemachine/test/statemachine-cli.test.ts:19:29
17| test('Generator command returns code 0 and creates expected files', async () => {
18| const result = await cli(['generate', fileName, '-d', destination]);
19| expect(result.code).toBe(0);
| ^
20|
21| fileName = fileName.replace(/\..*$/, '').replace(/[.-]/g, '');
- Expected "0"
+ Received "1"
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/13]⎯ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @snarkipus, have you run |
Beta Was this translation helpful? Give feedback.
Hey @snarkipus,
have you run
npm run build
after running install? Usually, vitest will compile the TypeScript code before running, but these 2 tests start new node processes, which require all the TypeScript files in the workspace to already be transpiled to JavaScript. We recently added the requirement to runbuild
separately in #873.