You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a playwright + cucumber project where I'm importing PO's and I want to use tsconfig-paths defined in my tsconfig.json but these do not seem to work.
Here is the project: https://github.com/testgitdl/cucumber-playwright-ang13
Actual Behavior
In login.page.ts: works -> import { page } from '../support/hooks.js';
doesn't work -> import { page } from '@support';
Expected Behavior
I have a playwright + cucumber project where I'm importing PO's and I want to use tsconfig-paths defined in my tsconfig.json but these do not seem to work.
Here is the project: https://github.com/testgitdl/cucumber-playwright-ang13
Actual Behavior
In login.page.ts: works -> import { page } from '../support/hooks.js';
doesn't work -> import { page } from '@support';
Steps to reproduce the problem
Here is the project: https://github.com/testgitdl/cucumber-playwright-ang13
My login.page.ts looks like this:
import { expect } from "chai";
// import { page } from '@support';
import { page } from '../support/hooks.js';
export class LoginPage {
async navigate() {
await page.goto('https://playwright.dev/');
}
async test() {
console.log('okkkk');
}
}
My tsconfig.json looks like this:
{
"compileOnSave": false,
"compilerOptions": {
"downlevelIteration": true,
"importHelpers": true,
"module": "es2020",
"outDir": "./dist/out-tsc",
"baseUrl": ".",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noImplicitAny": false,
"target": "es2020",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2020",
"dom"
],
"paths": {
"@support": [
"./e2e/support/"
],
"@support/": [
"./e2e/support/*"
]
}
}
}
To run the tests: npm run test
Minimal reproduction
Specifications
The text was updated successfully, but these errors were encountered: