Pytorch-NLU
Pytorch-NLU copied to clipboard
Root Cause Integration Error when working with jest-playwright
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
Which version of playwright are you using? I think we might be outdated on our side
And jest as well
And jest as well
Using jestv26.63 and playwright 1.10.0.
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.