ljmotta commented on code in PR #3437:
URL: 
https://github.com/apache/incubator-kie-tools/pull/3437#discussion_r2824520710


##########
packages/dmn-editor-standalone/tests-e2e/__fixtures__/prettier.ts:
##########
@@ -0,0 +1,20 @@
+import * as prettier from "prettier";
+import xmlPlugin from "@prettier/plugin-xml";
+
+// Prettier loads configuration files using dynamic `import()` calls inside 
`prettier.resolveConfig()`.
+// However, when Playwright detects the use of `__dirname`, it opts into its 
CommonJS-based test runner
+// (see https://github.com/microsoft/playwright/issues/37890).

Review Comment:
   To use `import.meta.dirname` we would need to include `"type": "module"` 
into the `package.json`, which would lead to other problems. For example we 
would require to add  the type `module` in several other pacakges.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to