1. 07 5月, 2021 9 次提交
    • A
      Fix helpers not working in e2e tests · e8443e26
      Asher 提交于
      It errors that jest is not defined so put it behind a function instead
      of immediately creating the mock (this is probably a better pattern
      anyway).
      
      The constant tests had to be reworked a little. Since the logger mock is
      hoisted it runs before createLoggerMock is imported. I moved it into a
      beforeAll which means the require call also needed to be moved
      there (since we need to mock the logger before requiring the constants
      or it'll pull the non-mocked logger).
      
      This means getPackageJson needs to be a let and assigned afterward. To
      avoid having to define a type for getPackageJson I just added a let var
      set to the type of the imported constants file and modified the other
      areas to use the same paradigm.
      
      I also replaced some hardcoded strings with the mocked package.json
      object.
      e8443e26
    • A
      Use warn log level for integration tests · ad4a70c6
      Asher 提交于
      Just to limit all the noise from code-server's startup output.
      ad4a70c6
    • A
      Add static route tests · 4925e970
      Asher 提交于
      4925e970
    • A
      Move temp test dirs under a `tests` sub-directory · 1789cd1b
      Asher 提交于
      This is to match the other tests that create temp directories. It also
      lets you clean up test temp directories all at once separately from
      other non-test temporary directories.
      1789cd1b
    • A
      Move tmpdir test helper to test helpers file · 52cf2fcf
      Asher 提交于
      52cf2fcf
    • A
      Move health route tests to routes directory · 0e4672f6
      Asher 提交于
      0e4672f6
    • J
      Merge pull request #3290 from cdr/jsjoeio/update-constants-test · 3243bb35
      Joe Previte 提交于
      feat(testing): add test for src/node/constants.ts
      3243bb35
    • A
      refactor(ci): split audit from prebuild (#3298) · d27b12ba
      Akash Satheesan 提交于
      Move dependency audits from prebuild to their own jobs,
      so that an error does not affect the rest of the build/test process.
      d27b12ba
    • J
      fix: coveragePathIgnorePatterns to /out · cb5ab48d
      Joe Previte 提交于
      We were accidentally ignoring `node/routes` because we had "out"
      instead of "/out" in `coveragePathIgnorePatterns` which caused
      us to not collect coverage for those files. Now we do.
      cb5ab48d
  2. 06 5月, 2021 9 次提交
  3. 05 5月, 2021 17 次提交
  4. 04 5月, 2021 5 次提交