thiagoelg commented on code in PR #3437: URL: https://github.com/apache/incubator-kie-tools/pull/3437#discussion_r2814703920
########## 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: If that's the case, can't we just replace `__dirname` with `import.meta.dirname`? See https://nodejs.org/api/esm.html#importmetadirname -- 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]
