Skip to content

Commit

Permalink
fix build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
kolodny committed Feb 15, 2024
1 parent 4db91e9 commit 230f81e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/vite-solid-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "vite",
"dev": "vite",
"build": "vite build",
"build": "npm i ../../ && (rm -rf ../../build/vite-solid-ts || true) && vite build && mv dist ../../build/vite-solid-ts",
"serve": "vite preview",
"test": "vitest",
"safetest": "cross-env OPT_URL=${OPT_URL:-http://localhost:3000/vite-solid-ts/} vitest --config vite.safetest.config",
Expand Down
8 changes: 4 additions & 4 deletions examples/vite-solid-ts/src/todo-list.safetest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ import { describe, test, expect } from 'safetest/vitest';

import { TodoList } from './todo-list';

describe('a test', () => {
test('works', async () => {
describe('different test types', () => {
test('can test a regular div', async () => {
const { page } = await render(() => <div>test</div>);
expect(page).toBeTruthy();
});

test('works2', async () => {
test('can wrap the app', async () => {
const { page } = await render((app) => (
<div style={{ padding: '20px', border: '1px solid green' }}>{app}</div>
));
expect(page).toBeTruthy();
});

test('works3', async () => {
test('works as a regular playwright test', async () => {
const { page } = await render();
expect(page).toBeTruthy();
});
Expand Down

0 comments on commit 230f81e

Please sign in to comment.