Skip to content

Commit eb50c5a

Browse files
committed
chore: fix tests
1 parent 99f1401 commit eb50c5a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

test/cli/.snapshots/create-jsx-email.test.ts.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`create-jsx-email > command 1`] = `
44
"
5-
create-jsx-email v2.0.4
5+
create-jsx-email
66
77
The fastest way to get started with JSX Email
88
@@ -126,6 +126,7 @@ export const Template = ({ email, name }: TemplateProps) => (
126126
127127
exports[`create-jsx-email > command 3`] = `
128128
[
129+
".test/new/.gitignore",
129130
".test/new/README.md",
130131
".test/new/package.json",
131132
".test/new/tsconfig.json",

test/cli/create-jsx-email.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ describe('create-jsx-email', async () => {
1515
// Note: For some reason `pnpm exec` is fucking with our CWD, and resets it to
1616
// packages/jsx-email, which causes the config not to be found. so we use npx instead
1717
})`IS_CLI_TEST=true create-jsx-email .test/new --yes`;
18-
const plain = strip(stdout).replace(/^(.*)create-jsx-email/, 'create-jsx-email');
18+
const plain = strip(stdout)
19+
.replace(/^(.*)create-jsx-email/, 'create-jsx-email')
20+
.replace(/v(\d+\.\d+\.\d+)/, '');
1921

2022
expect(plain).toMatchSnapshot();
2123

2224
const contents = await readFile(join(__dirname, '.test/new/templates/email.tsx'), 'utf8');
2325
expect(contents).toMatchSnapshot();
2426

25-
const files = await globby('.test/new/**/*');
27+
const files = await globby('.test/new/**/*', { dot: true });
28+
2629
expect(files).toMatchSnapshot();
2730
});
2831
});

0 commit comments

Comments
 (0)