You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use loki in conjunction with storybook in my project and when running on my computer (npx loki test) the tests run correctly. But when running for CI Pipeline (npx loki --requireReference --reactUri file:./storybook-static) after storybook build I get the following error:
/home/runner/.npm/_npx/d181a4fc59dca216/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^
TypeError: The “data” argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
at writeFile (node:fs:2285:5)
at go$writeFile (/home/runner/.npm/_npx/d181a4fc59dca216/node_modules/graceful-fs/graceful-fs.js:138:14)
at Object.writeFile (/home/runner/.npm/_npx/d181a4fc59dca216/node_modules/graceful-fs/graceful-fs.js:135:12)
at /home/runner/.npm/_npx/d181a4fc59dca216/node_modules/fs-extra/lib/output/index.js:18:27
at /home/runner/.npm/_npx/d181a4fc59dca216/node_modules/universalify/index.js:21:38 {
code: 'ERR_INVALID_ARG_TYPE'
}
I get this error also when running this command on my computer. And I was able to solve this error on my computer by following this answer, but first of all how can I change create-chrome-target.js for CI, and secondly on my computer now I see the same pattern in tests:
...
FAIL chrome.app/chrome.iphone7/Pages/MainPage
Primary
Timeout after 10000ms
FAIL chrome.app/chrome.iphone7/Pages/CatalogPage
Primary
Operation timed out after 60000ms
FAIL chrome.app/chrome.iphone7/Pages/InternalPage
Primary
Operation timed out after 60000ms
FAIL chrome.app/chrome.iphone7/Pages/MyProjectsPage
Primary
Operation timed out after 60000ms
...
I would welcome any help and am willing to provide any information needed to do so. My loki config is in package.json:
I use loki in conjunction with storybook in my project and when running on my computer (
npx loki test
) the tests run correctly. But when running for CI Pipeline (npx loki --requireReference --reactUri file:./storybook-static
) afterstorybook build
I get the following error:I get this error also when running this command on my computer. And I was able to solve this error on my computer by following this answer, but first of all how can I change create-chrome-target.js for CI, and secondly on my computer now I see the same pattern in tests:
I would welcome any help and am willing to provide any information needed to do so. My loki config is in package.json:
The text was updated successfully, but these errors were encountered: