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

Commitabd46f1

Browse files
committed
add setup tests
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent16e42f1 commitabd46f1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

‎src/validate.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ async function validate(args: string[]) {
111111
// run test
112112
console.info("Running setup test");
113113
// expect fail
114-
// await runTest();
114+
const{ stdout, stderr}=awaitrunTest();
115+
if(stdout){
116+
console.error(
117+
`Expected${step.id} setup tests to fail, but passed`
118+
);
119+
console.log(stdout);
120+
}
115121
}
116122

117123
if(stepSolutionCommits){
@@ -129,7 +135,13 @@ async function validate(args: string[]) {
129135
// run test
130136
console.info("Running solution test");
131137
// expect pass
132-
awaitrunTest();
138+
const{ stdout, stderr}=awaitrunTest();
139+
if(stderr){
140+
console.error(
141+
`Expected${step.id} solution tests to pass, but failed`
142+
);
143+
console.log(stderr);
144+
}
133145
}
134146
}
135147
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp