-
Notifications
You must be signed in to change notification settings - Fork 14
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
bug: The following dependencies weren't found #888
Comments
Hey @kirkstrobeck thanks for reporting.
|
I had a test, Examples // shared.tsx
const base = {
greeting: <>Hey there<br />Bob</>,
greetingButtonText: 'Hey there',
};
export default base; // foo.spec.ts
import { test } from '@playwright/test';
import base from './shared';
test('button text matches shared.tsx greetingButtonText', async ({ page }) => {
// Navigate to the page where the button is located
await page.goto('YOUR_PAGE_URL');
// Locate the button by a selector (update the selector as per your HTML structure)
const buttonText = await page.textContent('SELECTOR_FOR_YOUR_BUTTON');
// Assert that the text of the button matches greetingButtonText from shared.tsx
test.expect(buttonText).toBe(base.greetingButtonText);
}); |
@kirkstrobeck I see! As it's just a text based dependency, not some NPM package or large binary file, I think that would be possible. |
@kirkstrobeck do you expect the |
@kirkstrobeck just bumping this question. Importing |
I would expect it to warn properly. Something like “You’re trying to import a .tsx file, which is not supported.” Should also handle any other unexpected file extensions. |
Node.js version
v18.12.1
NPM version
8.19.2
@checkly/cli version
4.2.0
Steps to reproduce
Import a tsx file
What is expected?
Handle the tsx file or say that tsx is invalid
What is actually happening?
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: