Skip to content

Commit 1a04b0f

Browse files
filipesilvahansl
authored andcommitted
test: fix failure regex in rebuild-deps-type-check
1 parent 60d4c35 commit 1a04b0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/e2e/tests/build/rebuild-deps-type-check.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function() {
5151
]))
5252
.then((results) => {
5353
const stderr = results[0].stderr;
54-
if (!/ERROR in (.*\/src\/)?main\.ts/.test(stderr)) {
54+
if (!/ERROR in (.*src\/)?main\.ts/.test(stderr)) {
5555
throw new Error('Expected an error but none happened.');
5656
}
5757
})
@@ -65,8 +65,8 @@ export default function() {
6565
]))
6666
.then((results) => {
6767
const stderr = results[0].stderr;
68-
if (!/ERROR in (.*\/src\/)?main\.ts/.test(stderr)) {
69-
throw new Error('Expected an error but none happened.');
68+
if (!/ERROR in (.*src\/)?main\.ts/.test(stderr)) {
69+
throw new Error('Expected an error to still be there but none was.');
7070
}
7171
})
7272
// Fix the error!
@@ -80,7 +80,7 @@ export default function() {
8080
]))
8181
.then((results) => {
8282
const stderr = results[0].stderr;
83-
if (/ERROR in (.*\/src\/)?main\.ts/.test(stderr)) {
83+
if (/ERROR in (.*src\/)?main\.ts/.test(stderr)) {
8484
throw new Error('Expected no error but an error was shown.');
8585
}
8686
})

0 commit comments

Comments
 (0)