Skip to content

Commit 546fa28

Browse files
committed
more
1 parent 4039f9e commit 546fa28

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

packages/svelte/tests/runtime-browser/test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,6 @@ describe.concurrent(
6060
{ timeout: 20000, retry: process.env.CI ? 1 : 0 }
6161
);
6262

63-
describe.concurrent(
64-
'custom-elements',
65-
() => run_ce_tests(__dirname, 'custom-elements-samples'),
66-
// Browser tests are brittle and slow on CI
67-
{ timeout: 20000, retry: process.env.CI ? 1 : 0 }
68-
);
69-
7063
async function run_test(
7164
test_dir: string,
7265
config: ReturnType<typeof import('./assert').test>,
@@ -110,7 +103,10 @@ async function run_test(
110103

111104
if (compiled.css !== null) {
112105
compiled.js.code += `document.head.innerHTML += \`<style>${compiled.css.code}</style>\``;
113-
write(`${test_dir}/_output/${path.basename(args.path)}.css`, compiled.css.code);
106+
write(
107+
`${test_dir}/_output/client/${path.basename(args.path)}.css`,
108+
compiled.css.code
109+
);
114110
}
115111

116112
return {

packages/svelte/tests/runtime-legacy/shared.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ async function common_setup(cwd: string, runes: boolean | undefined, config: Run
169169
// load_compiled can be used for debugging a test. It means the compiler will not run on the input
170170
// so you can manipulate the output manually to see what fixes it, adding console.logs etc.
171171
if (!config.load_compiled) {
172-
await compile_directory(cwd, 'client', compileOptions, undefined, undefined);
172+
await compile_directory(cwd, 'client', compileOptions);
173173
await compile_directory(cwd, 'server', compileOptions);
174174
}
175175

@@ -259,9 +259,7 @@ async function run_test_variant(
259259
raf.reset();
260260

261261
// Put things we need on window for testing
262-
const styles = globSync('**/*.css', {
263-
cwd: `${cwd}/_output/client`
264-
})
262+
const styles = globSync('**/*.css', { cwd: `${cwd}/_output/client` })
265263
.map((file) => fs.readFileSync(`${cwd}/_output/client/${file}`, 'utf-8'))
266264
.join('\n')
267265
.replace(/\/\*<\/?style>\*\//g, '');

packages/svelte/tests/suite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function suite_with_variants<Test extends BaseTest, Variants extends stri
5454
const solo = config.solo;
5555
let it_fn = skip ? it.skip : solo ? it.only : it;
5656

57-
it_fn(dir, async () => {
57+
it_fn(`${dir} (${variant})`, async () => {
5858
if (!called_common) {
5959
called_common = true;
6060
common = await common_setup(config, `${cwd}/${samples_dir}/${dir}`);

0 commit comments

Comments
 (0)