mirror of
https://github.com/coder/code-server.git
synced 2024-11-25 07:47:40 +03:00
506d3f43ed
* refactor(http): extract logic into constructRedirectPath This allows us to easily test our redirect path construction logic where we get the relative path, the query string and construct a redirect path. By extracting this from `redirect`, we can easily test this logic in a unit test. I did this so we could test some logic where slashes in query strings should be made human-friendly for users. * feat(testing): add tests for constructRedirectPath Co-authored-by: Asher <ash@coder.com>
31 lines
858 B
JSON
31 lines
858 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",
|
|
"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"
|
|
}
|
|
}
|