Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Root Cause Integration Error when working with jest-playwright #106

Open
tyler-j-jackson opened this issue May 6, 2021 · 4 comments
Open

Comments

@tyler-j-jackson
Copy link

Hello, I'm seeing the following when trying to integrate root-cause into my jest-playwright project. Here's the error I'm getting:

  ● Test suite failed to run

    Root Cause Integration Error

      at Object.ensurePrerequisite (node_modules/@testim/root-cause-jest/lib/helpers.js:20:11)
      at Object.<anonymous> (node_modules/@testim/root-cause-jest/lib/forSetupFilesAfterEnv.js:23:9)

Error: ENOENT: no such file or directory, open 'C:\Users\tyler.jackson\source\repos\SkyKick.Manager\Web\testFrameworks\playwright\.root-cause\runs\1620327124642\runConclusion.json'

My jest.config.js:

'use strict';

const playwrightPreset = require('jest-playwright-preset/jest-preset.json');

const runId = Date.now().toString();

module.exports = {
    ...playwrightPreset,
    testMatch: ["**/__tests__/**/*.+(ts|js)", "**/?(*.)+(spec|test).+(ts|js)"],
    transform: {
        "^.+\\.(ts)$": "ts-jest",
    },
    reporters: [
        ['@testim/root-cause-jest/lib/reporter/default', { runId }],
    ],
    testEnvironmentOptions:{
        browsers: ["chromium", "firefox", "webkit"],
        debugOptions: {
            browsers: [
                'chromium'
            ],
            launchOptions: {
                headless: false,
                devtools: true
            }
        },
    },
    setupFilesAfterEnv: [
        ...playwrightPreset.setupFilesAfterEnv, '@testim/root-cause-jest/lib/forSetupFilesAfterEnv'
    ],
    globals: {
        runId,
    },
};

npm v7.6.3
node v15.12.0

@omril1
Copy link
Collaborator

omril1 commented May 6, 2021

Which version of playwright are you using? I think we might be outdated on our side

@omril1
Copy link
Collaborator

omril1 commented May 6, 2021

And jest as well

@tyler-j-jackson
Copy link
Author

And jest as well

Using jestv26.63 and playwright 1.10.0.

@omril1
Copy link
Collaborator

omril1 commented May 17, 2021

I'm updating the jest & playwright versions in our integration examples, I haven't noticed an issue with these versions together with node versions 10 through 15.

My suspicions are something to do with the files system, maybe current directory, missing config file or something todo with windows paths.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants