Skip to content

refactor(mdx-loader): refactor mdx-loader, expose loader creation utils #5180

refactor(mdx-loader): refactor mdx-loader, expose loader creation utils

refactor(mdx-loader): refactor mdx-loader, expose loader creation utils #5180

Triggered via pull request August 27, 2024 11:09
Status Failure
Total duration 2m 33s
Artifacts

tests.yml

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

Annotations

32 errors
sidebar › site with wrong sidebar content: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:108:20)
sidebar › site with undefined sidebar: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:148:20)
sidebar › site with disabled sidebar: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:166:20)
empty/no docs website › no files in docs folder: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:188:20)
simple website › extendCli - docsVersion: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:232:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:239:40)
simple website › getPathToWatch: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:232:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:254:31)
simple website › configureWebpack: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:232:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:275:22)
simple website › content: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:232:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:301:40)
versioned website › extendCli - docsVersion: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:345:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:359:40)
versioned website › getPathToWatch: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:345:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:374:31)
Tests (20)
The job was canceled because "_22" failed.
sidebar › site with wrong sidebar content: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:108:20)
sidebar › site with undefined sidebar: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:148:20)
sidebar › site with disabled sidebar: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:166:20)
empty/no docs website › no files in docs folder: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:188:20)
simple website › extendCli - docsVersion: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:232:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:239:40)
simple website › getPathToWatch: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:232:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:254:31)
simple website › configureWebpack: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:232:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:275:22)
simple website › content: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:232:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:301:40)
versioned website › extendCli - docsVersion: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:345:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:359:40)
versioned website › getPathToWatch: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:345:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:374:31)
Tests (18.0)
The job was canceled because "_22" failed.
sidebar › site with wrong sidebar content: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:108:20)
sidebar › site with undefined sidebar: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:148:20)
sidebar › site with disabled sidebar: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:166:20)
empty/no docs website › no files in docs folder: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:188:20)
simple website › extendCli - docsVersion: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:232:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:239:40)
simple website › getPathToWatch: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:232:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:254:31)
simple website › configureWebpack: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:232:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:275:22)
simple website › content: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:232:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:301:40)
versioned website › extendCli - docsVersion: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:345:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:359:40)
versioned website › getPathToWatch: packages/docusaurus-mdx-loader/src/processor.ts#L82
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/docusaurus/docusaurus/node_modules/remark-frontmatter/index.js:5 export {default} from './lib/index.js' ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at packages/docusaurus-mdx-loader/src/processor.ts:82:40 at createProcessorFactory (packages/docusaurus-mdx-loader/src/processor.ts:82:34) at createProcessors (packages/docusaurus-mdx-loader/src/processor.ts:239:33) at createMDXLoaderItem (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:19:32) at createMDXLoaderRule (packages/docusaurus-mdx-loader/src/createMDXLoader.ts:37:11) at pluginContentDocs (packages/docusaurus-plugin-content-docs/src/index.ts:180:29) at loadSite (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:345:20) at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts:374:31)