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

Upgrade to Jest 27 #148

Closed
mxro opened this issue Mar 26, 2022 · 3 comments
Closed

Upgrade to Jest 27 #148

mxro opened this issue Mar 26, 2022 · 3 comments
Assignees
Projects

Comments

@mxro
Copy link
Collaborator

mxro commented Mar 26, 2022

Goldstack for now uses Jest 26 but Jest 27 is available.

@mxro mxro added this to To do in Backlog via automation Mar 26, 2022
@mxro mxro moved this from To do to In progress in Backlog Apr 7, 2022
@mxro mxro self-assigned this Apr 7, 2022
@mxro
Copy link
Collaborator Author

mxro commented Apr 7, 2022

After upgrade, server test fails with:

 FAIL  src/projects.spec.ts (11.537 s)
  ● Project Endpoint › Should create, update and read project

    thrown: "Exceeded timeout of 5000 ms for a test.
    Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

      19 |   });
      20 |
    > 21 |   it('Should create, update and read project', async () => {      
         |   ^
      22 |     const config: ProjectConfiguration = {
      23 |       projectName: 'project1',
      24 |       rootTemplateReference: {

      at src/projects.spec.ts:21:3
      at Object.<anonymous> (src/projects.spec.ts:10:1)

Could be related to jestjs/jest#11607

Solution was to ensure that jest.setTimeout(20000); is run before describe(.

@mxro
Copy link
Collaborator Author

mxro commented Apr 7, 2022

Further errors testing esbuild build:

  Testing lambda build
    × Should build lambda (22 ms)
    × Should build lambda with custom esbuild config (1 ms)

  ● Testing lambda build › Should build lambda

    The service was stopped: spawn ...\esbuild-windows-64-npm-0.14.34-461e67de52-44e1b69008.zip\node_modules\esbuild-windows-64\esbuild.exe ENOENT

 ● Testing lambda build › Should build lambda with custom esbuild config    

    The service is no longer running: write EPIPE

      at ../../../../.yarn/unplugged/esbuild-npm-0.14.34-72a5e72c78/node_modules/esbuild/lib/main.js:1335:25

@mxro
Copy link
Collaborator Author

mxro commented Apr 7, 2022

Raised issue related to esbuild error: evanw/esbuild#2165 - seems to be a problem of jest/esbuild interoperability. All other tests appear to be working now.

@mxro mxro mentioned this issue Apr 8, 2022
@mxro mxro moved this from In progress to Done in Backlog Apr 9, 2022
@mxro mxro closed this as completed Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant