Skip to content

Commit

Permalink
fix: configure test environment for browser tests
Browse files Browse the repository at this point in the history
- Enable server option in test setup
- Add setupTimeout to prevent timeouts during test setup
- Enable build option to ensure Nuxt app is built
- Keep browser testing enabled for localStorage tests
  • Loading branch information
sadjow committed Nov 21, 2024
1 parent 3bab616 commit 3a7699d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ describe("Module configuration", () => {
describe("when enabled", async () => {
await setup({
rootDir: fileURLToPath(new URL("./fixtures/basic", import.meta.url)),
server: true,
browser: true,
setupTimeout: 60000,
build: true,
});

it("should track UTM parameters", async () => {
Expand All @@ -136,7 +139,10 @@ describe("Module configuration", () => {
describe("when disabled", async () => {
await setup({
rootDir: fileURLToPath(new URL("./fixtures/disabled", import.meta.url)),
server: true,
browser: true,
setupTimeout: 60000,
build: true,
});

it("should not track UTM parameters", async () => {
Expand Down

0 comments on commit 3a7699d

Please sign in to comment.