<span>In /opt/atlassian/pipelines/agent/build<br></span><span> 305 files checked.<br></span><span> testMatch: /opt/atlassian/pipelines/agent/build/src/**/__tests__/**/*.{js,jsx,mjs},<br> /opt/atlassian/pipelines/agent/build/src/**/?(*.)(spec|test).{js,jsx,mjs} - 118 matches<br></span><span> testPathIgnorePatterns: ./build/,<br> ./node_modules/,<br> ./documentation/,<br> ./coverage/ - 0 matches<br></span><span>Pattern: "" - 0 matches<br></span><span>----------|----------|----------|----------|----------|-------------------|<br></span><span>File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |<br></span><span>----------|----------|----------|----------|----------|-------------------|<br></span><span>All files | 0 | 0 | 0 | 0 | |<br></span><span>----------|----------|----------|----------|----------|-------------------|<br><br><br></span><span>No tests found<br></span>
I don't know what I'm doing wrong here, in my pipeline I'm running the same commands as locally yet bitbucket doesn't run the tests. I'm using Jest for my tests, it looks like Bitbucket is trying to run my tests from within the `build` directory but that doesn't make sense. Why would I save my test files inside of my build directory?
pipelines:
default:
- step:
name: Build Application
caches:
- node
script:
- npm install
- npm test
- npm run build
artifacts:
- build/**