Skip to content

Commit c9b2e09

Browse files
committed
chore: broken test
1 parent a6fbe94 commit c9b2e09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/routeRules.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { describe, expect, it } from 'vitest'
44

55
const { resolve } = createResolver(import.meta.url)
66

7+
process.env.NODE_ENV = 'production'
78
await setup({
89
rootDir: resolve('../.playground'),
910
build: true,
@@ -37,8 +38,6 @@ await setup({
3738
describe('route rule merging', () => {
3839
it('basic', async () => {
3940
const robotsTxt = await $fetch('/robots.txt')
40-
expect(robotsTxt).toContain('Disallow: /index-rule/*')
41-
expect(robotsTxt).toContain('Disallow: /robots-rule/*')
4241
expect(robotsTxt).toMatchInlineSnapshot(`
4342
"# START nuxt-robots (indexable)
4443
User-agent: *
@@ -61,5 +60,7 @@ describe('route rule merging', () => {
6160
Sitemap: https://nuxtseo.com/sitemap.xml
6261
# END nuxt-robots"
6362
`)
63+
expect(robotsTxt).toContain('Disallow: /index-rule/*')
64+
expect(robotsTxt).toContain('Disallow: /robots-rule/*')
6465
})
6566
})

0 commit comments

Comments
 (0)