Skip to content

Commit

Permalink
test(ssr-compiler): harmonize fixture format (#4407)
Browse files Browse the repository at this point in the history
Co-Authored-By: Eugene Kashida [email protected]
Co-Authored-By: Dale Bustad [email protected]
  • Loading branch information
nolanlawson authored Jul 25, 2024
1 parent e5a1ecb commit d7147ce
Show file tree
Hide file tree
Showing 102 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/@lwc/engine-server/src/__tests__/fixtures.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ function testFixtures() {
});

return {
'expected.html': result ? formatHTML(result) : undefined,
'error.txt': err,
'expected.html': result ? formatHTML(result) : '',
'error.txt': err ?? '',
};
}
);
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
8 changes: 4 additions & 4 deletions packages/@lwc/ssr-compiler/src/__tests__/fixtures.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ function testFixtures() {
);
return {
'expected.html': formatHTML(result),
'error.txt': undefined,
'error.txt': '',
};
} catch (_err: any) {
} catch (err: any) {
return {
'error.txt': _err.message,
'expected.html': undefined,
'error.txt': err.message,
'expected.html': '',
};
}
}
Expand Down
3 changes: 3 additions & 0 deletions scripts/jest/root.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ module.exports = {
'<rootDir>/packages/@lwc/rollup-plugin',
'<rootDir>/packages/@lwc/shared',
'<rootDir>/packages/@lwc/signals',
// We will enable this for realsies once all the tests are passing, but for now having the env var avoids
// running these tests in CI while still allowing for local testing.
...(process.env.TEST_SSR_COMPILER ? ['<rootDir>/packages/@lwc/ssr-compiler'] : []),
'<rootDir>/packages/@lwc/style-compiler',
'<rootDir>/packages/@lwc/synthetic-shadow',
'<rootDir>/packages/@lwc/template-compiler',
Expand Down

0 comments on commit d7147ce

Please sign in to comment.