|
|
|
@ -11,6 +11,7 @@ interface SnapshotTest extends BaseTest {
|
|
|
|
|
|
|
|
|
|
|
|
const { test, run } = suite<SnapshotTest>(async (config, cwd) => {
|
|
|
|
const { test, run } = suite<SnapshotTest>(async (config, cwd) => {
|
|
|
|
compile_directory(cwd, 'client', config.compileOptions);
|
|
|
|
compile_directory(cwd, 'client', config.compileOptions);
|
|
|
|
|
|
|
|
compile_directory(cwd, 'server', config.compileOptions);
|
|
|
|
|
|
|
|
|
|
|
|
// run `UPDATE_SNAPSHOTS=true pnpm test snapshot` to update snapshot tests
|
|
|
|
// run `UPDATE_SNAPSHOTS=true pnpm test snapshot` to update snapshot tests
|
|
|
|
if (process.env.UPDATE_SNAPSHOTS) {
|
|
|
|
if (process.env.UPDATE_SNAPSHOTS) {
|
|
|
|
|