Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c31d71

Browse files
authored
test: hook timeout on Windows CI (#466)
1 parent39a09cc commit6c31d71

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

‎integration/theme-resolving/inline-content.test.ts‎

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,25 @@ const baseDir = path.resolve(__dirname, '../..');
99
constcli=path.join(baseDir,'packages/cli/dist/index.js');
1010
consttmp=temporaryDirectory();
1111

12-
afterAll(async()=>{
13-
awaitfs.rm(tmp,{force:true,recursive:true});
14-
});
15-
16-
test(
17-
'getInlineContentForPackage finds files from @tutorialkit/astro',
18-
{timeout:process.env.CI ?60_000 :10_000},
12+
afterAll(
1913
async()=>{
20-
awaitexeca(
21-
'node',
22-
[cli,'create','theme-test','--install','--no-git','--no-start','--package-manager','pnpm','--defaults'],
23-
{cwd:tmp},
24-
);
25-
26-
constcontent=getInlineContentForPackage({
27-
name:'@tutorialkit/astro',
28-
pattern:'/dist/default/**/*.astro',
29-
root:`${tmp}/theme-test`,
30-
});
31-
32-
expect(content.length).toBeGreaterThan(0);
14+
awaitfs.rm(tmp,{force:true,recursive:true});
3315
},
16+
process.env.CI ?60_000 :10_000,
3417
);
18+
19+
test('getInlineContentForPackage finds files from @tutorialkit/astro',async()=>{
20+
awaitexeca(
21+
'node',
22+
[cli,'create','theme-test','--install','--no-git','--no-start','--package-manager','pnpm','--defaults'],
23+
{cwd:tmp},
24+
);
25+
26+
constcontent=getInlineContentForPackage({
27+
name:'@tutorialkit/astro',
28+
pattern:'/dist/default/**/*.astro',
29+
root:`${tmp}/theme-test`,
30+
});
31+
32+
expect(content.length).toBeGreaterThan(0);
33+
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp