Skip to content

Commit

Permalink
argh
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Sep 7, 2022
1 parent 7429460 commit 4687d14
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/kit/test/apps/dev-only/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ test.describe('server-only folder', () => {
test('server-only folder is not statically importable from the client', async ({ request }) => {
const resp = await request.get('/server-only-folder/static-import');
expect(await resp.text()).toMatch(
/.*Error: Cannot import \$lib\/server\/blah\/test.js into client-side code:.*/gs
/.*Cannot import \$lib\/server\/blah\/test.js into client-side code:.*/gs
);
});
test('server-only folder is not dynamically importable from the client', async ({ request }) => {
const resp = await request.get('/server-only-folder/dynamic-import');
expect(await resp.text()).toMatch(
/.*Error: Cannot import \$lib\/server\/blah\/test.js into client-side code:.*/gs
/.*Cannot import \$lib\/server\/blah\/test.js into client-side code:.*/gs
);
});
});
8 changes: 4 additions & 4 deletions packages/kit/test/build-errors/env.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test('$env/dynamic/private is not statically importable from the client', () =>
stdio: 'pipe',
timeout: 15000
}),
/.*Error: Cannot import \$env\/dynamic\/private into client-side code:.*/gs
/.*Cannot import \$env\/dynamic\/private into client-side code:.*/gs
);
});

Expand All @@ -23,7 +23,7 @@ test('$env/dynamic/private is not dynamically importable from the client', () =>
stdio: 'pipe',
timeout: 15000
}),
/.*Error: Cannot import \$env\/dynamic\/private into client-side code:.*/gs
/.*Cannot import \$env\/dynamic\/private into client-side code:.*/gs
);
});

Expand All @@ -35,7 +35,7 @@ test('$env/static/private is not statically importable from the client', () => {
stdio: 'pipe',
timeout: 15000
}),
/.*Error: Cannot import \$env\/static\/private into client-side code:.*/gs
/.*Cannot import \$env\/static\/private into client-side code:.*/gs
);
});

Expand All @@ -47,7 +47,7 @@ test('$env/static/private is not dynamically importable from the client', () =>
stdio: 'pipe',
timeout: 15000
}),
/.*Error: Cannot import \$env\/static\/private into client-side code:.*/gs
/.*Cannot import \$env\/static\/private into client-side code:.*/gs
);
});

Expand Down
8 changes: 4 additions & 4 deletions packages/kit/test/build-errors/server-only.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test('$lib/*.server.* is not statically importable from the client', () => {
stdio: 'pipe',
timeout: 15000
}),
/.*Error: Cannot import \$lib\/test.server.js into client-side code:.*/gs
/.*Cannot import \$lib\/test.server.js into client-side code:.*/gs
);
});

Expand All @@ -23,7 +23,7 @@ test('$lib/*.server.* is not dynamically importable from the client', () => {
stdio: 'pipe',
timeout: 15000
}),
/.*Error: Cannot import \$lib\/test.server.js into client-side code:.*/gs
/.*Cannot import \$lib\/test.server.js into client-side code:.*/gs
);
});

Expand All @@ -35,7 +35,7 @@ test('$lib/server/* is not statically importable from the client', () => {
stdio: 'pipe',
timeout: 15000
}),
/.*Error: Cannot import \$lib\/server\/something\/test.js into client-side code:.*/gs
/.*Cannot import \$lib\/server\/something\/test.js into client-side code:.*/gs
);
});

Expand All @@ -47,7 +47,7 @@ test('$lib/server/* is not dynamically importable from the client', () => {
stdio: 'pipe',
timeout: 15000
}),
/.*Error: Cannot import \$lib\/server\/something\/test.js into client-side code:.*/gs
/.*Cannot import \$lib\/server\/something\/test.js into client-side code:.*/gs
);
});

Expand Down

0 comments on commit 4687d14

Please sign in to comment.