Skip to content

Commit 51fca2a

Browse files
authored
chore(deps): revert dependencies
This reverts commit af1c5cd.
1 parent af1c5cd commit 51fca2a

File tree

6 files changed

+761
-860
lines changed

6 files changed

+761
-860
lines changed

docs/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
},
1111
"devDependencies": {
1212
"@docsearch/js": "^3.3.2",
13-
"@nuxt-themes/docus": "^1.6.0",
13+
"@nuxt-themes/docus": "^1.4.7",
1414
"@nuxthq/studio": "^0.6.5",
1515
"@nuxtlabs/github-module": "^1.6.1",
1616
"monaco-editor-core": "^0.34.1",
17-
"nuxt": "3.1.0",
17+
"nuxt": "v3.0.0",
1818
"vue-plausible": "^1.3.2"
1919
}
2020
}

docs/yarn.lock

+394-460
Large diffs are not rendered by default.

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
"test:unit": "nuxi prepare test/fixtures/basic && nuxi prepare test/fixtures/document-driven && vitest run"
4343
},
4444
"dependencies": {
45-
"@nuxt/kit": "3.1.0",
45+
"@nuxt/kit": "v3.0.0",
4646
"consola": "^2.15.3",
47-
"defu": "^6.1.2",
47+
"defu": "^6.1.1",
4848
"destr": "^1.2.2",
4949
"detab": "^3.0.2",
5050
"html-tags": "^3.2.0",
@@ -75,14 +75,14 @@
7575
"unified": "^10.1.2",
7676
"unist-builder": "^3.0.1",
7777
"unist-util-position": "^4.0.4",
78-
"unist-util-visit": "^4.1.2",
78+
"unist-util-visit": "^4.1.1",
7979
"unstorage": "^1.0.1",
8080
"ws": "^8.12.0"
8181
},
8282
"devDependencies": {
8383
"@nuxt/module-builder": "^0.2.1",
84-
"@nuxt/schema": "3.1.0",
85-
"@nuxt/test-utils": "3.1.0",
84+
"@nuxt/schema": "v3.0.0",
85+
"@nuxt/test-utils": "v3.0.0",
8686
"@nuxthq/admin": "npm:@nuxthq/admin-edge@latest",
8787
"@nuxtjs/eslint-config-typescript": "latest",
8888
"@types/ws": "^8.5.4",
@@ -93,7 +93,7 @@
9393
"husky": "^8.0.3",
9494
"jiti": "^1.16.2",
9595
"lint-staged": "^13.1.0",
96-
"nuxt": "3.1.0",
96+
"nuxt": "v3.0.0",
9797
"rehype-figure": "^1.0.1",
9898
"remark-oembed": "^1.2.2",
9999
"vitest": "^0.28.1",

test/basic.test.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { fileURLToPath } from 'url'
2-
import { test, describe, expect } from 'vitest'
2+
import { test, describe, expect, vi } from 'vitest'
33
import { setup, $fetch } from '@nuxt/test-utils'
44
import { testMarkdownParser } from './features/parser-markdown'
55
import { testPathMetaTransformer } from './features/transformer-path-meta'
@@ -19,7 +19,7 @@ import { testParserOptions } from './features/parser-options'
1919
import { testComponents } from './features/components'
2020
import { testLocales } from './features/locales'
2121

22-
// const spyConsoleWarn = vi.spyOn(global.console, 'warn')
22+
const spyConsoleWarn = vi.spyOn(global.console, 'warn')
2323

2424
describe('Basic usage', async () => {
2525
await setup({
@@ -48,10 +48,10 @@ describe('Basic usage', async () => {
4848
expect(html).contains('<p><!--[-->p1<!--]--></p>')
4949
})
5050

51-
// test('Warning for invalid file name', () => {
52-
// expect(spyConsoleWarn).toHaveBeenCalled()
53-
// expect(spyConsoleWarn).toHaveBeenCalledWith('Ignoring [content:with-\'invalid\'-char.md]. File name should not contain any of the following characters: \', ", ?, #, /')
54-
// })
51+
test('Warning for invalid file name', () => {
52+
expect(spyConsoleWarn).toHaveBeenCalled()
53+
expect(spyConsoleWarn).toHaveBeenCalledWith('Ignoring [content:with-\'invalid\'-char.md]. File name should not contain any of the following characters: \', ", ?, #, /')
54+
})
5555

5656
testLocales()
5757

test/custom-api-base.test.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { fileURLToPath } from 'url'
2-
import { test, describe, expect } from 'vitest'
2+
import { test, describe, expect, vi } from 'vitest'
33
import { setup, $fetch } from '@nuxt/test-utils'
44
import { testMarkdownParser } from './features/parser-markdown'
55
import { testPathMetaTransformer } from './features/transformer-path-meta'
@@ -19,6 +19,7 @@ import { testParserOptions } from './features/parser-options'
1919
import { testComponents } from './features/components'
2020
import { testLocales } from './features/locales'
2121

22+
const spyConsoleWarn = vi.spyOn(global.console, 'warn')
2223
const apiBaseURL = '/my-content-api'
2324

2425
describe('Custom api baseURL', async () => {
@@ -51,6 +52,11 @@ describe('Custom api baseURL', async () => {
5152
expect(html).contains('<p><!--[-->p1<!--]--></p>')
5253
})
5354

55+
test('Warning for invalid file name', () => {
56+
expect(spyConsoleWarn).toHaveBeenCalled()
57+
expect(spyConsoleWarn).toHaveBeenCalledWith('Ignoring [content:with-\'invalid\'-char.md]. File name should not contain any of the following characters: \', ", ?, #, /')
58+
})
59+
5460
testLocales()
5561

5662
testComponents()

0 commit comments

Comments
 (0)