Skip to content

Commit 776b91e

Browse files
committed
chore: broken tests
1 parent 6fb9544 commit 776b91e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"client:dev": "nuxi dev client --port 3300",
5252
"build": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build && npm run client:build",
5353
"dev": "nuxi dev .playground",
54-
"prepare:fixtures": "nuxi prepare test/fixtures/basic && nuxi prepare test/fixtures/i18n && nuxi prepare test/fixtures/content-v3",
54+
"prepare:fixtures": "nuxi prepare .playground && nuxi prepare test/fixtures/basic && nuxi prepare test/fixtures/i18n && nuxi prepare test/fixtures/content-v3",
5555
"dev:build": "nuxi build .playground",
5656
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build && nuxi prepare .playground",
5757
"release": "pnpm build && bumpp && pnpm -r publish",

test/e2e/bot-detection.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('bot detection', () => {
2222
expect(botResult.isBot).toBe(true)
2323
expect(botResult.botName).toBe('googlebot')
2424
expect(botResult.botCategory).toBe('search-engine')
25-
})
25+
}, 15_000)
2626

2727
it('detects non-bot user agent correctly', async () => {
2828
const humanResult = await $fetch('/api/bot-detection', {
@@ -34,7 +34,7 @@ describe('bot detection', () => {
3434
expect(humanResult.isBot).toBe(false)
3535
expect(humanResult.botName).toBeUndefined()
3636
expect(humanResult.botCategory).toBeUndefined()
37-
})
37+
}, 15_000)
3838

3939
it('detects browser fingerprinting as bot via createPage', async () => {
4040
const page = await createPage('/bot-detection')
@@ -49,7 +49,7 @@ describe('bot detection', () => {
4949
expect(isBotText).toContain('is bot: true')
5050
expect(botNameText).toContain('bot name: puppeteer')
5151
expect(trustedText).toContain('trusted: false')
52-
})
52+
}, 15_000)
5353

5454
it('compares browser fingerprinting vs server-side detection', async () => {
5555
// Server-side detection (should not detect browser as bot)
@@ -62,5 +62,5 @@ describe('bot detection', () => {
6262

6363
const isBotText = await page.textContent('[data-test-id="is-bot"]')
6464
expect(isBotText).toContain('is bot: true')
65-
})
65+
}, 15_000)
6666
})

0 commit comments

Comments
 (0)