-
Notifications
You must be signed in to change notification settings - Fork 186
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
refactor(config): update config to detect test.ts files instead of files under test dir #194
base: main
Are you sure you want to change the base?
Conversation
…les under test dir
@khalatevarun is attempting to deploy a commit to the Antiwork Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Lint and shortest tests are failing |
May also want to version this as a breaking change. Can be minor as small and early |
^ our fault? I still think we should remove pnpm and go to npm. If someone else could replicate that and fix, would be great. Don't think anything in this branch would cause it, and someone else reported that there may be inconsistencies in the node modules based on npx vs using pnpm in places. |
How does this work if there's a set of tests I don't want to run, or a folder I only want to run tests for, temporarily (via CLI)? |
const debugAI = args.includes("--debug-ai"); | ||
|
||
try { | ||
const config = getConfig(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like this code is giving the config error. you're calling getConfig
before a call to initialize.
I tried reproducing this, but no luck. here are the steps i took,
no issue with the imports. may be you can try reloading vscode and see it it fixs the issue. ( |
Just posting it here again in case you missed it: You're right. with the new implementation we should first initialize the runner and then initialize the config: This should fix it: try {
const runner = new TestRunner(
process.cwd(),
true,
headless,
targetUrl,
debugAI
);
await runner.initialize();
const config = getConfig();
const testPattern = cliTestPattern || config.testPattern;
await runner.runTests(testPattern);
} Let me know if you need the full code for this.
|
Please merge main to include a new caching feature! |
Would be great to merge this soon so I can use this new approach :) |
Would be great to get to this soon. If it's not done by Friday we'll have some internally do it as I think this is quite important! |
Fix: #190