Skip to content

refactor: create @docusaurus/bundler and @docusaurus/babel packages #5257

refactor: create @docusaurus/bundler and @docusaurus/babel packages

refactor: create @docusaurus/bundler and @docusaurus/babel packages #5257

Triggered via pull request September 20, 2024 09:47
Status Failure
Total duration 2m 37s
Artifacts

tests.yml

on: pull_request
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

20 errors
customize JS loader › createJsLoaderFactory defaults to babel loader: packages/docusaurus/src/webpack/__tests__/utils.test.ts#L17
TypeError: (0 , _utils.createJsLoaderFactory) is not a function at testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:17:33) at Object.testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:33:34)
customize JS loader › createJsLoaderFactory accepts loaders with preset: packages/docusaurus/src/webpack/__tests__/utils.test.ts#L17
TypeError: (0 , _utils.createJsLoaderFactory) is not a function at testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:17:33) at Object.testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:43:34)
customize JS loader › createJsLoaderFactory allows customization: packages/docusaurus/src/webpack/__tests__/utils.test.ts#L17
TypeError: (0 , _utils.createJsLoaderFactory) is not a function at testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:17:33) at Object.testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:65:34)
theme translations › has base messages files contain EXACTLY all the translations extracted from the theme. Please run "yarn workspace @docusaurus/theme-translations update" to keep base messages files up-to-date: packages/docusaurus-theme-translations/src/utils.ts#L72
Cannot find module '@docusaurus/core/lib/babel/preset' from 'packages/docusaurus-theme-translations/src/utils.ts' at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11) at resolve (packages/docusaurus-theme-translations/src/utils.ts:72:25) at Object.<anonymous> (packages/docusaurus-theme-translations/locales/__tests__/locales.test.ts:37:7)
extractThemeCodeMessages › throws with invalid syntax: packages/docusaurus-theme-translations/src/__tests__/utils.test.ts#L15
expect(received).rejects.toThrowErrorMatchingInlineSnapshot(snapshot) Snapshot name: `extractThemeCodeMessages throws with invalid syntax 1` - Snapshot - 8 + Received + 1 - - Please make sure all theme translations are static! - Some warnings were found! - - Translate content could not be extracted. It has to be a static string and use optional but static props, like <Translate id="my-id" description="my-description">text</Translate>. - File: packages/docusaurus-theme-translations/src/__tests__/__fixtures__/theme/index.js at line 4 - Full code: <Translate>{index}</Translate> - + Cannot find module '@docusaurus/core/lib/babel/preset' from 'packages/docusaurus-theme-translations/src/utils.ts' at Object.toThrowErrorMatchingInlineSnapshot (node_modules/expect/build/index.js:218:22) at Object.toThrowErrorMatchingInlineSnapshot (packages/docusaurus-theme-translations/src/__tests__/utils.test.ts:15:15)
Tests (22)
Process completed with exit code 1.
Tests (20)
The job was canceled because "_22" failed.
customize JS loader › createJsLoaderFactory defaults to babel loader: packages/docusaurus/src/webpack/__tests__/utils.test.ts#L17
TypeError: (0 , _utils.createJsLoaderFactory) is not a function at testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:17:33) at Object.testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:33:34)
customize JS loader › createJsLoaderFactory accepts loaders with preset: packages/docusaurus/src/webpack/__tests__/utils.test.ts#L17
TypeError: (0 , _utils.createJsLoaderFactory) is not a function at testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:17:33) at Object.testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:43:34)
customize JS loader › createJsLoaderFactory allows customization: packages/docusaurus/src/webpack/__tests__/utils.test.ts#L17
TypeError: (0 , _utils.createJsLoaderFactory) is not a function at testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:17:33) at Object.testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:65:34)
theme translations › has base messages files contain EXACTLY all the translations extracted from the theme. Please run "yarn workspace @docusaurus/theme-translations update" to keep base messages files up-to-date: packages/docusaurus-theme-translations/src/utils.ts#L72
Cannot find module '@docusaurus/core/lib/babel/preset' from 'packages/docusaurus-theme-translations/src/utils.ts' at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11) at resolve (packages/docusaurus-theme-translations/src/utils.ts:72:25) at Object.<anonymous> (packages/docusaurus-theme-translations/locales/__tests__/locales.test.ts:37:7)
extractThemeCodeMessages › throws with invalid syntax: packages/docusaurus-theme-translations/src/__tests__/utils.test.ts#L15
expect(received).rejects.toThrowErrorMatchingInlineSnapshot(snapshot) Snapshot name: `extractThemeCodeMessages throws with invalid syntax 1` - Snapshot - 8 + Received + 1 - - Please make sure all theme translations are static! - Some warnings were found! - - Translate content could not be extracted. It has to be a static string and use optional but static props, like <Translate id="my-id" description="my-description">text</Translate>. - File: packages/docusaurus-theme-translations/src/__tests__/__fixtures__/theme/index.js at line 4 - Full code: <Translate>{index}</Translate> - + Cannot find module '@docusaurus/core/lib/babel/preset' from 'packages/docusaurus-theme-translations/src/utils.ts' at Object.toThrowErrorMatchingInlineSnapshot (node_modules/expect/build/index.js:218:22) at Object.toThrowErrorMatchingInlineSnapshot (packages/docusaurus-theme-translations/src/__tests__/utils.test.ts:15:15)
Tests (20)
The operation was canceled.
Tests (18.0)
The job was canceled because "_22" failed.
customize JS loader › createJsLoaderFactory defaults to babel loader: packages/docusaurus/src/webpack/__tests__/utils.test.ts#L17
TypeError: (0 , _utils.createJsLoaderFactory) is not a function at testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:17:33) at Object.testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:33:34)
customize JS loader › createJsLoaderFactory accepts loaders with preset: packages/docusaurus/src/webpack/__tests__/utils.test.ts#L17
TypeError: (0 , _utils.createJsLoaderFactory) is not a function at testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:17:33) at Object.testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:43:34)
customize JS loader › createJsLoaderFactory allows customization: packages/docusaurus/src/webpack/__tests__/utils.test.ts#L17
TypeError: (0 , _utils.createJsLoaderFactory) is not a function at testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:17:33) at Object.testJsLoaderFactory (packages/docusaurus/src/webpack/__tests__/utils.test.ts:65:34)
theme translations › has base messages files contain EXACTLY all the translations extracted from the theme. Please run "yarn workspace @docusaurus/theme-translations update" to keep base messages files up-to-date: packages/docusaurus-theme-translations/src/utils.ts#L72
Cannot find module '@docusaurus/core/lib/babel/preset' from 'packages/docusaurus-theme-translations/src/utils.ts' at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11) at resolve (packages/docusaurus-theme-translations/src/utils.ts:72:25) at Object.<anonymous> (packages/docusaurus-theme-translations/locales/__tests__/locales.test.ts:37:7)
extractThemeCodeMessages › throws with invalid syntax: packages/docusaurus-theme-translations/src/__tests__/utils.test.ts#L15
expect(received).rejects.toThrowErrorMatchingInlineSnapshot(snapshot) Snapshot name: `extractThemeCodeMessages throws with invalid syntax 1` - Snapshot - 8 + Received + 1 - - Please make sure all theme translations are static! - Some warnings were found! - - Translate content could not be extracted. It has to be a static string and use optional but static props, like <Translate id="my-id" description="my-description">text</Translate>. - File: packages/docusaurus-theme-translations/src/__tests__/__fixtures__/theme/index.js at line 4 - Full code: <Translate>{index}</Translate> - + Cannot find module '@docusaurus/core/lib/babel/preset' from 'packages/docusaurus-theme-translations/src/utils.ts' at Object.toThrowErrorMatchingInlineSnapshot (node_modules/expect/build/index.js:218:22) at Object.toThrowErrorMatchingInlineSnapshot (packages/docusaurus-theme-translations/src/__tests__/utils.test.ts:15:15)
Tests (18.0)
The operation was canceled.