diff --git a/packages/test-project/package.json b/packages/test-project/package.json index db594f1..e4dd55a 100644 --- a/packages/test-project/package.json +++ b/packages/test-project/package.json @@ -25,5 +25,6 @@ "obsidian": "latest", "tslib": "2.4.0", "typescript": "4.7.4" - } + }, + "type": "module" } diff --git a/packages/test-project/playwright.config.ts b/packages/test-project/playwright.config.ts index 512a3d2..4666aef 100644 --- a/packages/test-project/playwright.config.ts +++ b/packages/test-project/playwright.config.ts @@ -1,5 +1,5 @@ import { defineConfig, devices } from '@playwright/test'; -import * as fix from "obsidian-testing-framework/fixture"; +import {ObsidianTestFixtures} from "obsidian-testing-framework/fixture"; /** * Read environment variables from file. diff --git a/packages/test-project/tsconfig.json b/packages/test-project/tsconfig.json index c44b729..3a15554 100644 --- a/packages/test-project/tsconfig.json +++ b/packages/test-project/tsconfig.json @@ -3,11 +3,11 @@ "baseUrl": ".", "inlineSourceMap": true, "inlineSources": true, - "module": "ESNext", + "module": "Node16", "target": "ES6", "allowJs": true, "noImplicitAny": true, - "moduleResolution": "node", + "moduleResolution": "Node16", "importHelpers": true, "isolatedModules": true, "strictNullChecks": true, @@ -16,7 +16,7 @@ "ES5", "ES6", "ES7" - ] + ], }, "include": [ "**/*.ts"