Skip to content

Commit 2cea023

Browse files
committed
ok turn everything back on
1 parent 269c456 commit 2cea023

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "monorepo for @sveltejs/kit and friends",
55
"private": true,
66
"scripts": {
7-
"test": "turbo run test --filter=test-build-errors --force",
7+
"test": "turbo run test --filter=./packages/* --force",
88
"check": "turbo run check",
99
"lint": "turbo run lint",
1010
"format": "turbo run format",

packages/kit/test/build-errors/server-only.spec.js

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,51 @@ import { execSync } from 'node:child_process';
44
import path from 'node:path';
55

66
test('$lib/*.server.* is not statically importable from the client', () => {
7-
// assert.throws(
8-
// () =>
9-
execSync('pnpm build', {
10-
cwd: path.join(process.cwd(), 'apps/server-only-module'),
11-
stdio: 'pipe',
12-
timeout: 15000
13-
});
14-
// /.*Cannot import \$lib\/test.server.js into client-side code:.*/gs
15-
// );
7+
assert.throws(
8+
() =>
9+
execSync('pnpm build', {
10+
cwd: path.join(process.cwd(), 'apps/server-only-module'),
11+
stdio: 'pipe',
12+
timeout: 15000
13+
}),
14+
/.*Cannot import \$lib\/test.server.js into client-side code:.*/gs
15+
);
1616
});
1717

1818
test('$lib/*.server.* is not dynamically importable from the client', () => {
19-
// assert.throws(
20-
// () =>
21-
execSync('pnpm build', {
22-
cwd: path.join(process.cwd(), 'apps/server-only-module-dynamic-import'),
23-
stdio: 'pipe',
24-
timeout: 15000
25-
});
26-
// /.*Cannot import \$lib\/test.server.js into client-side code:.*/gs
27-
// );
19+
assert.throws(
20+
() =>
21+
execSync('pnpm build', {
22+
cwd: path.join(process.cwd(), 'apps/server-only-module-dynamic-import'),
23+
stdio: 'pipe',
24+
timeout: 15000
25+
}),
26+
/.*Cannot import \$lib\/test.server.js into client-side code:.*/gs
27+
);
2828
});
2929

3030
test('$lib/server/* is not statically importable from the client', () => {
31-
// assert.throws(
32-
// () =>
33-
execSync('pnpm build', {
34-
cwd: path.join(process.cwd(), 'apps/server-only-folder'),
35-
stdio: 'pipe',
36-
timeout: 15000
37-
});
38-
// /.*Cannot import \$lib\/server\/something\/test.js into client-side code:.*/gs
39-
// );
31+
assert.throws(
32+
() =>
33+
execSync('pnpm build', {
34+
cwd: path.join(process.cwd(), 'apps/server-only-folder'),
35+
stdio: 'pipe',
36+
timeout: 15000
37+
}),
38+
/.*Cannot import \$lib\/server\/something\/test.js into client-side code:.*/gs
39+
);
4040
});
4141

4242
test('$lib/server/* is not dynamically importable from the client', () => {
43-
// assert.throws(
44-
// () =>
45-
execSync('pnpm build', {
46-
cwd: path.join(process.cwd(), 'apps/server-only-folder-dynamic-import'),
47-
stdio: 'pipe',
48-
timeout: 15000
49-
});
50-
// /.*Cannot import \$lib\/server\/something\/test.js into client-side code:.*/gs
51-
// );
43+
assert.throws(
44+
() =>
45+
execSync('pnpm build', {
46+
cwd: path.join(process.cwd(), 'apps/server-only-folder-dynamic-import'),
47+
stdio: 'pipe',
48+
timeout: 15000
49+
}),
50+
/.*Cannot import \$lib\/server\/something\/test.js into client-side code:.*/gs
51+
);
5252
});
5353

5454
test.run();

0 commit comments

Comments
 (0)