Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

fix: import default from puppeteer to fix e2e tests (#607)

Guilherme Oenningdb451ca835d7
diff --git a/tests/lib/browser.ts b/tests/lib/browser.ts
index cddd7d109..0f38d4656 100644
--- a/tests/lib/browser.ts
+++ b/tests/lib/browser.ts
@@ -1,4 +1,4 @@
-import * as puppeteer from "puppeteer";
+import puppeteer from "puppeteer";
import { BrowserTab } from ".";
export class Browser {
diff --git a/tests/tsconfig.json b/tests/tsconfig.json
deleted file mode 100644
index d6df365eb..000000000
--- a/tests/tsconfig.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "target": "es6",
- "strict": true,
- "sourceMap": false,
- "outDir": "../output/tests",
- "experimentalDecorators": true,
- "emitDecoratorMetadata": true
- },
- "include": [
- "./**/*"
- ],
-}
\ No newline at end of file
diff --git a/tsconfig.json b/tsconfig.json
index 53fc403bb..c8fe9360c 100755
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -3,6 +3,7 @@
"module": "esnext",
"moduleResolution": "node",
"esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
"target": "es5",
"strict": true,
"sourceMap": true,