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
FAIL RENDERER __tests__/__renderer__/workday-waiver.js
● Test suite failed to run
● Test suite failed to run
Jest encountered an unexpected token
This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.
By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".
Here's what you can do:
• To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
• If you need a custom transformation specify a "transform" option in your config.
• If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.
You'll find more details and examples of these config options in the docs:
https://jestjs.io/docs/en/configuration.html
Details:
/Users/runner/work/time-to-leave/time-to-leave/node_modules/astronomia/data/vsop87Bearth.js:2611
export default m;
^^^^^^
SyntaxError: Unexpected token 'export'
5 | const fs = require('fs');
6 | const path = require('path');
> 7 | const Holidays = require('date-holidays');
| ^
8 | /* eslint-disable-next-line no-global-assign */
9 | window.$ = require('jquery');
10 | const {
at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1258:14)
at Object.<anonymous> (node_modules/date-holidays-parser/lib/vsop87Bearth.cjs:5:21)
at Object.<anonymous> (node_modules/date-holidays-parser/lib/Equinox.cjs:4:20)
at Object.<anonymous> (node_modules/date-holidays-parser/lib/CalEventFactory.cjs:20:17)
at Object.<anonymous> (node_modules/date-holidays-parser/lib/DateFn.cjs:6:23)
at Object.<anonymous> (node_modules/date-holidays-parser/lib/Holidays.cjs:9:14)
at Object.<anonymous> (node_modules/date-holidays-parser/lib/index.cjs:5:16)
at Object.<anonymous> (node_modules/date-holidays/lib/Holidays.cjs:5:22)
at Object.<anonymous> (node_modules/date-holidays/lib/index.cjs:3:16)
at Object.<anonymous> (__tests__/__renderer__/workday-waiver.js:7:18)
Check CI run of latest PR: https://github.com/thamara/time-to-leave/actions/runs/5251031069/jobs/9485569168?pr=974
The text was updated successfully, but these errors were encountered: