Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App tests for Shortest #190

Open
slavingia opened this issue Dec 27, 2024 · 0 comments · May be fixed by #194
Open

App tests for Shortest #190

slavingia opened this issue Dec 27, 2024 · 0 comments · May be fixed by #194
Labels

Comments

@slavingia
Copy link
Contributor

slavingia commented Dec 27, 2024

Put tests next to the page.ts (same folder) so we don't need a specific app/tests/ folder.

Requires updating testDir to testPattern:

import type { ShortestConfig } from "@antiwork/shortest";

export default {
  headless: false,
  baseUrl: "http://localhost:3000",
  testPattern: "*.test.ts",
  anthropicKey: process.env.ANTHROPIC_API_KEY,
} satisfies ShortestConfig;

Include an example test that makes sure that buttons are rounded.

@slavingia slavingia changed the title App tests App tests for Shortest Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant