diff --git a/.gitpod.yml b/.gitpod.yml index dcc9eb0eb6e6be1773b629afdbb8da8470410f89..7c7efce0d8becab5113fc68aa47ad1bdf55fa6b8 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,7 +1,7 @@ tasks: - init: > - nvm install 16 && - nvm use 16 && + nvm install 18 && + nvm use 18 && yarn install && yarn run build command: yarn run start diff --git a/docs/development/remote-development.md b/docs/development/remote-development.md index 959b9c2fb19ba5df96e7f6205ff361e94a56b203..9b27d3f364a96aca7a3a9aa688c14a8ff67a72fe 100644 --- a/docs/development/remote-development.md +++ b/docs/development/remote-development.md @@ -46,12 +46,60 @@ If you need more hours you'll need to buy a plan with more hours. ### Gitpod tips -- Use `yarn jest:16` to run the tests on Gitpod +- Use `yarn jest` to run the tests on Gitpod ### Known problems with Gitpod -- `yarn jest:16` has some failing tests -- You can't preview Markdown files in the VS Code online editor +There are two failing tests when running `yarn jest` on Gitpod: + +```bash +Summary of all failing tests + FAIL lib/util/git/index.spec.ts (635.102 s, 319 MB heap size) + ◠util/git/index › isBranchModified() › should return false when author matches + + expected true to be false or Boolean(false) + + 283 | + 284 | it('should return false when author matches', async () => { + > 285 | expect(await git.isBranchModified('renovate/future_branch')).toBeFalse(); + | ^ + 286 | expect(await git.isBranchModified('renovate/future_branch')).toBeFalse(); + 287 | }); + 288 | + + at Object.<anonymous> (lib/util/git/index.spec.ts:285:68) + + ◠util/git/index › isBranchModified() › should return false when author is ignored + + expected true to be false or Boolean(false) + + 291 | gitIgnoredAuthors: ['custom@example.com'], + 292 | }); + > 293 | expect(await git.isBranchModified('renovate/custom_author')).toBeFalse(); + | ^ + 294 | }); + 295 | + 296 | it('should return true when custom author is unknown', async () => { + + at Object.<anonymous> (lib/util/git/index.spec.ts:293:68) + + FAIL test/static-files.spec.ts (14.506 s, 288 MB heap size) + ◠static-files › has same static files in lib and dist + + thrown: "Exceeded timeout of 10000 ms for a test. + Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." + + 36 | jest.setTimeout(10 * 1000); + 37 | + > 38 | it('has same static files in lib and dist', async () => { + | ^ + 39 | expect(await getFiles('dist')).toEqual(await getFiles('lib')); + 40 | }); + 41 | }); + + at test/static-files.spec.ts:38:3 + at Object.<anonymous> (test/static-files.spec.ts:34:1) +``` ## GitHub Codespaces