jest-dom
jest-dom copied to clipboard
Error in github actions with return: cannot find module 'strip-indent
Error in github action
This is my workflow
name: UnitTests
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Prepare cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install node-sass
run: npm i node-sass
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:ci
When run tests action is executed, this error is returned

Add npx browserslist@latest --update-db, but error
My package is this
"test": "jest --silent",
"test:ci": "npm run test",
"@testing-library/jest-dom": "^5.15.1",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
I need suport, please
Hi how I can help you sr?
El El mié, mar. 2, 2022 a la(s) 12:32 a. m., Ruan Duarte < @.***> escribió:
Error in github action
This is my workflow
name: UnitTests
on: [push]
jobs: tests: runs-on: ubuntu-latest steps: - uses: @.***
- name: Setup Node.js uses: ***@***.*** with: node-version: '14.x' - name: Prepare cache uses: ***@***.*** with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - name: Install node-sass run: npm i node-sass - name: Install dependencies run: npm ci - name: Run tests run: npm run test:ciWhen run tests action is executed, this error is returned
[image: image] https://user-images.githubusercontent.com/53544158/156295168-a9d7caad-c3c1-462d-94d9-d450163268ec.png
Add npx @.*** --update-db, but error
My package is this
"test": "jest --silent", "test:ci": "npm run test", @./jest-dom": "^5.15.1", @./react": "^12.1.2", @.***/user-event": "^13.5.0",
I need suport, please
— Reply to this email directly, view it on GitHub <testing-library/jest-dom#440>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWS5U27H7YPJM3KINU4UQB3U53VOJANCNFSM5PWEXF5Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hi @RUANDUARTE03..
This issue is still missing some important stuff.
Does this happen in local environment?
Is your package-lock file pushed and updated? It looks like you're running npm ci which runs installs only based on the package-lock file.
If you have a repo you can share with us so we'll have a look it can be great.