Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workday waiver test failing in CI #980

Closed
araujoarthur0 opened this issue Jun 16, 2023 · 0 comments · Fixed by #982
Closed

Workday waiver test failing in CI #980

araujoarthur0 opened this issue Jun 16, 2023 · 0 comments · Fixed by #982
Labels
bug Something isn't working

Comments

@araujoarthur0
Copy link
Collaborator

 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant