Pytorch-NLU icon indicating copy to clipboard operation
Pytorch-NLU copied to clipboard

Root Cause Integration Error when working with jest-playwright

Open tyler-j-jackson opened this issue 4 years ago • 4 comments

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

tyler-j-jackson avatar May 06 '21 18:05 tyler-j-jackson

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

omril1 avatar May 06 '21 19:05 omril1

And jest as well

omril1 avatar May 06 '21 19:05 omril1

And jest as well

Using jestv26.63 and playwright 1.10.0.

tyler-j-jackson avatar May 06 '21 19:05 tyler-j-jackson

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.

omril1 avatar May 17 '21 14:05 omril1