Tom Mrazauskas

Results 279 comments of Tom Mrazauskas

Back to your question. `@nuxtjs/style-resources` is not ESM module. File extension is `.js`, `"type": "module"` is not declared in `package.json`, so Node will treat this module as CJS, but will...

@regenrek Thanks for note. I added couple of lines to my previous comment. Yes, Playwright can be used with Jest too. This was the only way to test with Playwright...

@mhfeizi Could you provide minimal reproduction repo, please? It would be easier to help seeing what you are trying to test.

@mhfeizi Thanks! I had a look and it seems like this is recent regression in Components module (follow nuxt/components#223). All works as expected if `@nuxt/components` is pinned to version 2.1.8:...

@Angel21PC Try creating two separate `jest.config` files for Vue Test Utils and for Nuxt Test Utils. They need different setup. Simply create config with just `preset: '@nuxt/test-utils'` and use it...

If your goal is end-to-end testing of an app using `playwright`, I would suggest using their own test runner instead of `jest`. Because: * it is faster * very similar...

Here is the promised config for Playwright Test Runner: ```ts // playwright.config.ts import { PlaywrightTestConfig } from '@playwright/test' const config: PlaywrightTestConfig = { webServer: { command: 'yarn build && yarn...

> I would appreciate any comments that shed some light on it. @Angel21PC It is complicated. See https://github.com/nuxt/test-utils/issues/166#issuecomment-924703773 for some hints on the root of this problem.

`nuxt-i18n` is published as ESM module. At the moment Jest needs additional configuration to be able to transpile it. By default [Jest transformers](https://jestjs.io/docs/configuration#transform-objectstring-pathtotransformer--pathtotransformer-object) ignore `node_modules` directory. Jest throws an error,...

@sausin Did you try: `'node_modules/(?!(@nuxtjs/svg-sprite)/)'`? Works for me. Does this cause any side effects in your setup?