Skip to content

Commit 4a8f245

Browse files
committed
chroe(preview-server): remove remaining test dependency on the demo
1 parent 41d2525 commit 4a8f245

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

packages/preview-server/src/utils/caniemail/tailwind/get-tailwind-config.spec.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,6 @@ import { pixelBasedPreset } from '@react-email/components';
55
import { getTailwindConfig } from './get-tailwind-config';
66

77
describe('getTailwindConfig()', () => {
8-
it("works on the demo's Vercel Invite template", async () => {
9-
const sourcePath = path.resolve(
10-
__dirname,
11-
'../../../../../../apps/demo/emails/notifications/vercel-invite-user.tsx',
12-
);
13-
const sourceCode = await fs.readFile(sourcePath, 'utf8');
14-
const ast = parse(sourceCode, {
15-
strictMode: false,
16-
errorRecovery: true,
17-
sourceType: 'unambiguous',
18-
plugins: ['jsx', 'typescript', 'decorators'],
19-
});
20-
21-
expect(await getTailwindConfig(sourceCode, ast, sourcePath)).toEqual({
22-
presets: [pixelBasedPreset],
23-
});
24-
});
25-
268
it('works with email templates that import the tailwind config', async () => {
279
const sourcePath = path.resolve(
2810
__dirname,

0 commit comments

Comments
 (0)