chore: update jiti to v2 #5445
Annotations
14 errors
docsVersion › works with custom i18n paths:
packages/docusaurus-plugin-content-docs/src/__tests__/cli.test.ts#L265
expect(received).toMatchSnapshot()
Snapshot name: `docsVersion works with custom i18n paths 1`
- Snapshot - 2
+ Received + 2
- [
{
+ "0": {
"dirName": ".",
"type": "autogenerated",
},
- ]
+ }
at Object.toMatchSnapshot (packages/docusaurus-plugin-content-docs/src/__tests__/cli.test.ts:265:30)
|
loadFreshModule › module graph › can load and reload fresh module graph:
packages/docusaurus-utils/src/__tests__/moduleUtils.test.ts#L134
expect(received).resolves.toEqual(expected) // deep equality
- Expected - 1
+ Received + 0
@@ -1,8 +1,7 @@
Object {
"dependency1": Object {
- "dep1Export": "dep1 val1",
"dep1Val": "dep1 val2",
},
"dependency2": Object {
"dep2Val": "dep2 val",
},
at Object.toEqual (node_modules/expect/build/index.js:174:22)
at Object.toEqual (packages/docusaurus-utils/src/__tests__/moduleUtils.test.ts:134:47)
|
loadFreshModule › invalid module path param › throws if module path does not exist:
packages/docusaurus-utils/src/__tests__/moduleUtils.test.ts#L243
expect(received).rejects.toThrowErrorMatchingInlineSnapshot(snapshot)
Snapshot name: `loadFreshModule invalid module path param throws if module path does not exist 1`
- Snapshot - 1
+ Received + 1
"Docusaurus could not load module at path "/some/unknown/module/path.js"
- Cause: Cannot find module '/some/unknown/module/path.js' from 'packages/docusaurus-utils/src/moduleUtils.ts'"
+ Cause: Cannot find module '/some/unknown/module/path.js' from 'packages/docusaurus-utils/src/_index.js'"
at Object.toThrowErrorMatchingInlineSnapshot (node_modules/expect/build/index.js:218:22)
at Object.toThrowErrorMatchingInlineSnapshot (packages/docusaurus-utils/src/__tests__/moduleUtils.test.ts:243:18)
|
initPlugins › parses plugins correctly and loads them in correct order:
packages/docusaurus/src/server/plugins/init.ts#L140
TypeError: normalizedPluginConfig.plugin is not a function
at plugin (packages/docusaurus/src/server/plugins/init.ts:140:57)
at async Promise.all (index 9)
at initPluginsConfigs (packages/docusaurus/src/server/plugins/init.ts:180:5)
at initPlugins (packages/docusaurus/src/server/plugins/init.ts:196:37)
at loadSite (packages/docusaurus/src/server/plugins/__tests__/init.test.ts:19:19)
at Object.<anonymous> (packages/docusaurus/src/server/plugins/__tests__/init.test.ts:26:32)
|
Tests (18.0)
Process completed with exit code 1.
|
Tests (20)
The job was canceled because "_18_0" failed.
|
Tests (20)
The operation was canceled.
|
Tests (22)
The job was canceled because "_18_0" failed.
|
docsVersion › works with custom i18n paths:
packages/docusaurus-plugin-content-docs/src/__tests__/cli.test.ts#L265
expect(received).toMatchSnapshot()
Snapshot name: `docsVersion works with custom i18n paths 1`
- Snapshot - 2
+ Received + 2
- [
{
+ "0": {
"dirName": ".",
"type": "autogenerated",
},
- ]
+ }
at Object.toMatchSnapshot (packages/docusaurus-plugin-content-docs/src/__tests__/cli.test.ts:265:30)
|
loadFreshModule › module graph › can load and reload fresh module graph:
packages/docusaurus-utils/src/__tests__/moduleUtils.test.ts#L134
expect(received).resolves.toEqual(expected) // deep equality
- Expected - 1
+ Received + 0
@@ -1,8 +1,7 @@
Object {
"dependency1": Object {
- "dep1Export": "dep1 val1",
"dep1Val": "dep1 val2",
},
"dependency2": Object {
"dep2Val": "dep2 val",
},
at Object.toEqual (node_modules/expect/build/index.js:174:22)
at Object.toEqual (packages/docusaurus-utils/src/__tests__/moduleUtils.test.ts:134:47)
|
loadFreshModule › invalid module path param › throws if module path does not exist:
packages/docusaurus-utils/src/__tests__/moduleUtils.test.ts#L243
expect(received).rejects.toThrowErrorMatchingInlineSnapshot(snapshot)
Snapshot name: `loadFreshModule invalid module path param throws if module path does not exist 1`
- Snapshot - 1
+ Received + 1
"Docusaurus could not load module at path "/some/unknown/module/path.js"
- Cause: Cannot find module '/some/unknown/module/path.js' from 'packages/docusaurus-utils/src/moduleUtils.ts'"
+ Cause: Cannot find module '/some/unknown/module/path.js' from 'packages/docusaurus-utils/src/_index.js'"
at Object.toThrowErrorMatchingInlineSnapshot (node_modules/expect/build/index.js:218:22)
at Object.toThrowErrorMatchingInlineSnapshot (packages/docusaurus-utils/src/__tests__/moduleUtils.test.ts:243:18)
|
loadPresets › esm form:
packages/docusaurus/src/server/plugins/presets.ts#L57
TypeError: presetFunction is not a function
at presetFunction (packages/docusaurus/src/server/plugins/presets.ts:57:12)
at async Promise.all (index 0)
at loadPresets (packages/docusaurus/src/server/plugins/presets.ts:60:25)
at Object.<anonymous> (packages/docusaurus/src/server/plugins/__tests__/presets.test.ts:51:21)
|
loadPresets › ts form:
packages/docusaurus/src/server/plugins/presets.ts#L57
TypeError: presetFunction is not a function
at presetFunction (packages/docusaurus/src/server/plugins/presets.ts:57:12)
at async Promise.all (index 0)
at loadPresets (packages/docusaurus/src/server/plugins/presets.ts:60:25)
at Object.<anonymous> (packages/docusaurus/src/server/plugins/__tests__/presets.test.ts:64:21)
|
Tests (22)
The operation was canceled.
|