mirror of
https://github.com/coder/code-server.git
synced 2024-12-27 19:56:57 +03:00
c51ff3bce1
* feat: add installExtension integration test This adds a new helper function called `runCodeServerCommand` along with a test for `--install-extension`. We can use this approach for writing integration tests (i.e. testing a real code-server build, CLI commands, etc). * refactor: s/ test:standalone with test:integration This replaces our integration approach to use Jest instead of a single bash script. By doing this, we will be able to easily maintain and add to our integration test suite. * refactor: filter unit tests Now that our integration tests also use Jest, we need to update our unit test script to ignore `test/integration`. * refactor: add SKIP_SUBMODULE_DEPS to postinstall * refactor: add SKIP_SUBMODULE_DEPS to postinstall * fixup!: skip submod deps * refactor: move runCodeServerCommand into sep. file When Jest runs a test, it loads all the files and imports for that test. This means you might be "requiring" code that's unrelated to your tests. This leads to unexpected errors depending on where the code runs. Moved this file to avoid GLIBC and other errors relaed to argon2 when running integration tests in CI. * fizup: formatting * fizup: increase timeout * refactor: use fixture in installExtension test Instead of relying on a network to install an extension, we use a fixture - vsix file in the repo. This is also faster. * feat: add integration test for listExtensions * chore: ignore integration fixtures * fixup: formatting * fixup: remove custom-hacks.css * fixup: formatting * Update test/integration/installExtension.test.ts Co-authored-by: Asher <ash@coder.com> * Update test/integration/listExtensions.test.ts Co-authored-by: Asher <ash@coder.com> * Update test/integration/installExtension.test.ts Co-authored-by: Asher <ash@coder.com> * Update test/integration/listExtensions.test.ts Co-authored-by: Asher <ash@coder.com> * fixup: contributing integration tests section * fixup: update ci/readme * fixup: use RELEASE_PATH in test-integration.sh * refactor: unzip vsix for listExtensions * refactor: use exec instead of spawn * Update docs/CONTRIBUTING.md Co-authored-by: Asher <ash@coder.com> * Update test/integration/listExtensions.test.ts Co-authored-by: Asher <ash@coder.com> * Update test/integration/listExtensions.test.ts Co-authored-by: Asher <ash@coder.com> * Update test/integration/listExtensions.test.ts Co-authored-by: Asher <ash@coder.com> * refactor: use different default binary path * fixup!: formatting Co-authored-by: Asher <ash@coder.com>
32 lines
887 B
JSON
32 lines
887 B
JSON
{
|
|
"license": "MIT",
|
|
"#": "We must put jest in a sub-directory otherwise VS Code somehow picks up the types and generates conflicts with mocha.",
|
|
"devDependencies": {
|
|
"@jest-mock/express": "^1.4.5",
|
|
"@playwright/test": "^1.16.3",
|
|
"@types/jest": "^27.0.2",
|
|
"@types/jsdom": "^16.2.13",
|
|
"@types/node-fetch": "^2.5.8",
|
|
"@types/supertest": "^2.0.11",
|
|
"@types/wtfnode": "^0.7.0",
|
|
"argon2": "^0.28.0",
|
|
"extract-zip": "^2.0.1",
|
|
"jest": "^27.3.1",
|
|
"jest-fetch-mock": "^3.0.3",
|
|
"jsdom": "^16.4.0",
|
|
"node-fetch": "^2.6.1",
|
|
"playwright": "^1.16.3",
|
|
"supertest": "^6.1.6",
|
|
"ts-jest": "^27.0.7",
|
|
"wtfnode": "^0.9.1"
|
|
},
|
|
"resolutions": {
|
|
"ansi-regex": "^5.0.1",
|
|
"argon2/@mapbox/node-pre-gyp/tar": "^6.1.9",
|
|
"set-value": "^4.0.1",
|
|
"tmpl": "^1.0.5",
|
|
"path-parse": "^1.0.7",
|
|
"json-schema": "^0.4.0"
|
|
}
|
|
}
|