Skip to content

Commit 4687d14

Browse files
committedSep 7, 2022
argh
1 parent 7429460 commit 4687d14

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed
 

‎packages/kit/test/apps/dev-only/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ test.describe('server-only folder', () => {
5656
test('server-only folder is not statically importable from the client', async ({ request }) => {
5757
const resp = await request.get('/server-only-folder/static-import');
5858
expect(await resp.text()).toMatch(
59-
/.*Error: Cannot import \$lib\/server\/blah\/test.js into client-side code:.*/gs
59+
/.*Cannot import \$lib\/server\/blah\/test.js into client-side code:.*/gs
6060
);
6161
});
6262
test('server-only folder is not dynamically importable from the client', async ({ request }) => {
6363
const resp = await request.get('/server-only-folder/dynamic-import');
6464
expect(await resp.text()).toMatch(
65-
/.*Error: Cannot import \$lib\/server\/blah\/test.js into client-side code:.*/gs
65+
/.*Cannot import \$lib\/server\/blah\/test.js into client-side code:.*/gs
6666
);
6767
});
6868
});

‎packages/kit/test/build-errors/env.spec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test('$env/dynamic/private is not statically importable from the client', () =>
1111
stdio: 'pipe',
1212
timeout: 15000
1313
}),
14-
/.*Error: Cannot import \$env\/dynamic\/private into client-side code:.*/gs
14+
/.*Cannot import \$env\/dynamic\/private into client-side code:.*/gs
1515
);
1616
});
1717

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

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

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

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test('$lib/*.server.* is not statically importable from the client', () => {
1111
stdio: 'pipe',
1212
timeout: 15000
1313
}),
14-
/.*Error: Cannot import \$lib\/test.server.js into client-side code:.*/gs
14+
/.*Cannot import \$lib\/test.server.js into client-side code:.*/gs
1515
);
1616
});
1717

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

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

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

0 commit comments

Comments
 (0)