Skip to content

Commit

Permalink
improve esm example and test, #164
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Jun 15, 2024
1 parent c2f04ff commit ce0de40
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## dev
* chore: imporve esm example, ([#164](https://github.com/vitalets/playwright-bdd/issues/164))
* bug: Cucumber reporter accesses non-existent file ([#161](https://github.com/vitalets/playwright-bdd/issues/161))

## 6.5.0
Expand Down
3 changes: 1 addition & 2 deletions examples/esm/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"compilerOptions": {
"target": "es2021",
"module": "ESNext",
"module": "nodenext",
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true
},
"include": ["**/*.ts"]
Expand Down
2 changes: 1 addition & 1 deletion test/esm-ts/steps/TodoPage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Fixture, Given } from 'playwright-bdd/decorators';
import type { test } from './fixtures';
import type { test } from './fixtures.js';

export
@Fixture<typeof test>('todoPage')
Expand Down
3 changes: 1 addition & 2 deletions test/esm-ts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"compilerOptions": {
"target": "es2021",
"module": "ESNext",
"module": "nodenext",
"strict": true,
"useUnknownInCatchVariables": false,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"esModuleInterop": true
Expand Down

0 comments on commit ce0de40

Please sign in to comment.