The lint PR is running tests in the dist folder, which causes them to fail (they are non-functional d.ts files).
We should be ignoring these folders and make sure any folder named test(s) are ignored both for building and for testing
Other info
No response
Relevant log output
@equinor/mad-components:test
Error: @equinor/mad-components#test: command (/home/runner/work/mad/mad/packages/components) /tmp/xfs-c9af40fe/yarn run test exited (1)
cache miss, executing ebb8a11c94195bc1
PASS dist/components/Progress/__tests__/progressUtils.spec.js (28.801 s)
PASS src/components/Progress/__tests__/progressUtils.spec.ts (28.695 s)
PASS __tests__/Typography.spec.tsx
PASS __tests__/SwipeableWithContext.spec.tsx
FAIL dist/components/Progress/__tests__/progressUtils.spec.d.ts
● Test suite failed to run
Your test suite must contain at least one test.
at onResult (../../node_modules/@jest/core/build/TestScheduler.js:133:18)
at ../../node_modules/@jest/core/build/TestScheduler.js:254:19
at ../../node_modules/emittery/index.js:363:13
at Array.map (<anonymous>)
at Emittery.emit (../../node_modules/emittery/index.js:361:23)
PASS __tests__/Button.spec.tsx
Test Suites: 1 failed, 1 skipped, 5 passed, 6 of 7 total
Tests: 1 skipped, 19 passed, 20 total
Snapshots: 0 total
Time: 37.202 s
Ran all test suites.
Error: command finished with error: command (/home/runner/work/mad/mad/packages/components) /tmp/xfs-c9af40fe/yarn run test exited (1)
Package / App
MAD Components
Version
latest
What happened?
The lint PR is running tests in the dist folder, which causes them to fail (they are non-functional d.ts files). We should be ignoring these folders and make sure any folder named test(s) are ignored both for building and for testing
Other info
No response
Relevant log output