Skip to content

Commit

Permalink
chore(deps): update vitest monorepo to v1 (major) (#1948)
Browse files Browse the repository at this point in the history
* chore(deps): update vitest monorepo to v1

* update snapshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: uzlopak <aras.abbasi@googlemail.com>
  • Loading branch information
renovate[bot] and Uzlopak committed Jan 25, 2024
1 parent 6ed90da commit d7ae857
Show file tree
Hide file tree
Showing 8 changed files with 641 additions and 484 deletions.
431 changes: 294 additions & 137 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
"@types/node": "^20.0.0",
"@types/resolve": "^1.20.5",
"@types/supertest": "^6.0.0",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.6",
"@vitest/coverage-v8": "^1.0.0",
"@vitest/ui": "^1.0.0",
"bottleneck": "^2.19.5",
"connect-sse": "^1.2.0",
"execa": "^5.0.0",
Expand All @@ -91,7 +91,7 @@
"tsd": "^0.30.0",
"typedoc": "^0.25.3",
"typescript": "^5.2.2",
"vitest": "^0.34.6"
"vitest": "^1.0.0"
},
"engines": {
"node": ">=18"
Expand Down
64 changes: 32 additions & 32 deletions test/apps/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@

exports[`default app > GET /probot > get info from package.json > returns the correct HTML with values 1`] = `
"<!DOCTYPE html>
<html lang=\\"en\\" class=\\"height-full\\" data-color-mode=\\"auto\\" data-light-theme=\\"light\\" data-dark-theme=\\"dark\\">
<html lang="en" class="height-full" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">
<head>
<meta charset=\\"UTF-8\\">
<meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">
<meta http-equiv=\\"X-UA-Compatible\\" content=\\"ie=edge\\">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>probot | built with Probot</title>
<link rel=\\"icon\\" href=\\"/probot/static/probot-head.png\\">
<link rel=\\"stylesheet\\" href=\\"/probot/static/primer.css\\">
<link rel="icon" href="/probot/static/probot-head.png">
<link rel="stylesheet" href="/probot/static/primer.css">
</head>
<body class=\\"height-full bg-gray-light\\">
<div class=\\"d-flex flex-column flex-justify-center flex-items-center text-center height-full\\">
<img src=\\"/probot/static/robot.svg\\" alt=\\"Probot Logo\\" width=\\"100\\" class=\\"mb-6\\">
<div class=\\"box-shadow rounded-2 border p-6 bg-white\\">
<body class="height-full bg-gray-light">
<div class="d-flex flex-column flex-justify-center flex-items-center text-center height-full">
<img src="/probot/static/robot.svg" alt="Probot Logo" width="100" class="mb-6">
<div class="box-shadow rounded-2 border p-6 bg-white">
<h1>
Welcome to probot
<span class=\\"Label Label--outline v-align-middle ml-2 text-gray-light\\">v0.0.0-development</span>
<span class="Label Label--outline v-align-middle ml-2 text-gray-light">v0.0.0-development</span>
</h1>
<p>A framework for building GitHub Apps to automate and improve your workflow</p>
</div>
<div class=\\"mt-4\\">
<h4 class=\\"alt-h4 text-gray-light\\">Need help?</h4>
<div class=\\"d-flex flex-justify-center mt-2\\">
<a href=\\"https://probot.github.io/docs/\\" class=\\"btn btn-outline mr-2\\">Documentation</a>
<a href=\\"https://github.com/probot/probot/discussions\\" class=\\"btn btn-outline\\">Discuss on GitHub</a>
<div class="mt-4">
<h4 class="alt-h4 text-gray-light">Need help?</h4>
<div class="d-flex flex-justify-center mt-2">
<a href="https://probot.github.io/docs/" class="btn btn-outline mr-2">Documentation</a>
<a href="https://github.com/probot/probot/discussions" class="btn btn-outline">Discuss on GitHub</a>
</div>
</div>
</div>
Expand All @@ -37,31 +37,31 @@ exports[`default app > GET /probot > get info from package.json > returns the co
exports[`default app > GET /probot > get info from package.json > returns the correct HTML without values 1`] = `
"<!DOCTYPE html>
<html lang=\\"en\\" class=\\"height-full\\" data-color-mode=\\"auto\\" data-light-theme=\\"light\\" data-dark-theme=\\"dark\\">
<html lang="en" class="height-full" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">
<head>
<meta charset=\\"UTF-8\\">
<meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">
<meta http-equiv=\\"X-UA-Compatible\\" content=\\"ie=edge\\">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Your App | built with Probot</title>
<link rel=\\"icon\\" href=\\"/probot/static/probot-head.png\\">
<link rel=\\"stylesheet\\" href=\\"/probot/static/primer.css\\">
<link rel="icon" href="/probot/static/probot-head.png">
<link rel="stylesheet" href="/probot/static/primer.css">
</head>
<body class=\\"height-full bg-gray-light\\">
<div class=\\"d-flex flex-column flex-justify-center flex-items-center text-center height-full\\">
<img src=\\"/probot/static/robot.svg\\" alt=\\"Probot Logo\\" width=\\"100\\" class=\\"mb-6\\">
<div class=\\"box-shadow rounded-2 border p-6 bg-white\\">
<body class="height-full bg-gray-light">
<div class="d-flex flex-column flex-justify-center flex-items-center text-center height-full">
<img src="/probot/static/robot.svg" alt="Probot Logo" width="100" class="mb-6">
<div class="box-shadow rounded-2 border p-6 bg-white">
<h1>
Welcome to your Probot App
</h1>
<p>This bot was built using <a href=\\"https://github.com/probot/probot\\">Probot</a>, a framework for building GitHub Apps.</p>
<p>This bot was built using <a href="https://github.com/probot/probot">Probot</a>, a framework for building GitHub Apps.</p>
</div>
<div class=\\"mt-4\\">
<h4 class=\\"alt-h4 text-gray-light\\">Need help?</h4>
<div class=\\"d-flex flex-justify-center mt-2\\">
<a href=\\"https://probot.github.io/docs/\\" class=\\"btn btn-outline mr-2\\">Documentation</a>
<a href=\\"https://github.com/probot/probot/discussions\\" class=\\"btn btn-outline\\">Discuss on GitHub</a>
<div class="mt-4">
<h4 class="alt-h4 text-gray-light">Need help?</h4>
<div class="d-flex flex-justify-center mt-2">
<a href="https://probot.github.io/docs/" class="btn btn-outline mr-2">Documentation</a>
<a href="https://github.com/probot/probot/discussions" class="btn btn-outline">Discuss on GitHub</a>
</div>
</div>
</div>
Expand Down
94 changes: 47 additions & 47 deletions test/apps/__snapshots__/setup.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,57 +2,57 @@

exports[`Setup app > GET /probot/import > renders importView 1`] = `
"<!DOCTYPE html>
<html lang=\\"en\\" class=\\"height-full\\" data-color-mode=\\"auto\\" data-light-theme=\\"light\\" data-dark-theme=\\"dark\\">
<html lang="en" class="height-full" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">
<head>
<meta charset=\\"UTF-8\\">
<meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">
<meta http-equiv=\\"X-UA-Compatible\\" content=\\"ie=edge\\">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Import probot | built with Probot</title>
<link rel=\\"icon\\" href=\\"/probot/static/probot-head.png\\">
<link rel=\\"stylesheet\\" href=\\"/probot/static/primer.css\\">
<link rel="icon" href="/probot/static/probot-head.png">
<link rel="stylesheet" href="/probot/static/primer.css">
</head>
<body class=\\"bg-gray-light\\">
<div class=\\"d-flex flex-column flex-justify-center flex-items-center text-center height-full py-6\\">
<a href=\\"/probot\\"><img src=\\"/probot/static/robot.svg\\" alt=\\"Probot Logo\\" width=\\"100\\" class=\\"mb-6\\"></a>
<div class=\\"box-shadow rounded-2 border p-6 bg-white\\">
<body class="bg-gray-light">
<div class="d-flex flex-column flex-justify-center flex-items-center text-center height-full py-6">
<a href="/probot"><img src="/probot/static/robot.svg" alt="Probot Logo" width="100" class="mb-6"></a>
<div class="box-shadow rounded-2 border p-6 bg-white">
<h2>Use existing Github App</h2>
<br>
<h3>Step 1:</h3>
<p class=\\"d-block mt-2\\">
<p class="d-block mt-2">
Replace your app's Webhook URL with <br>
<b></b>
</p>
<a class=\\"d-block mt-2\\" href=\\"https://github.com/settings/apps\\" target=\\"__blank\\" rel=\\"noreferrer\\">
<a class="d-block mt-2" href="https://github.com/settings/apps" target="__blank" rel="noreferrer">
You can do it here
</a>
<br>
<h3>Step 2:</h3>
<p class=\\"mt-2\\">Fill out this form</p>
<form onsubmit=\\"return onSubmit(event) || false\\">
<label class=\\"d-block mt-2\\" for=\\"appId\\">App Id</label>
<input class=\\"form-control width-full\\" type=\\"text\\" required=\\"true\\" id=\\"appId\\" name=\\"appId\\"><br>
<p class="mt-2">Fill out this form</p>
<form onsubmit="return onSubmit(event) || false">
<label class="d-block mt-2" for="appId">App Id</label>
<input class="form-control width-full" type="text" required="true" id="appId" name="appId"><br>
<label class=\\"d-block mt-3\\" for=\\"whs\\">Webhook secret (required!)</label>
<input class=\\"form-control width-full\\" type=\\"password\\" required=\\"true\\" id=\\"whs\\" name=\\"whs\\"><br>
<label class="d-block mt-3" for="whs">Webhook secret (required!)</label>
<input class="form-control width-full" type="password" required="true" id="whs" name="whs"><br>
<label class=\\"d-block mt-3\\" for=\\"pem\\">Private Key</label>
<input class=\\"form-control width-full m-2\\" type=\\"file\\" accept=\\".pem\\" required=\\"true\\" id=\\"pem\\"
name=\\"pem\\">
<label class="d-block mt-3" for="pem">Private Key</label>
<input class="form-control width-full m-2" type="file" accept=".pem" required="true" id="pem"
name="pem">
<br>
<button class=\\"btn btn-outline m-2\\" type=\\"submit\\">Submit</button>
<button class="btn btn-outline m-2" type="submit">Submit</button>
</form>
</div>
<div class=\\"mt-4\\">
<h4 class=\\"alt-h4 text-gray-light\\">Need help?</h4>
<div class=\\"d-flex flex-justify-center mt-2\\">
<a href=\\"https://probot.github.io/docs/\\" class=\\"btn btn-outline mr-2\\">Documentation</a>
<a href=\\"https://github.com/probot/probot/discussions\\" class=\\"btn btn-outline\\">Discuss on GitHub</a>
<div class="mt-4">
<h4 class="alt-h4 text-gray-light">Need help?</h4>
<div class="d-flex flex-justify-center mt-2">
<a href="https://probot.github.io/docs/" class="btn btn-outline mr-2">Documentation</a>
<a href="https://github.com/probot/probot/discussions" class="btn btn-outline">Discuss on GitHub</a>
</div>
</div>
</div>
Expand Down Expand Up @@ -106,7 +106,7 @@ exports[`Setup app > GET /probot/setup > returns a redirect 2`] = `
"APP_ID": "id",
"GITHUB_CLIENT_ID": "Iv1.8a61f9b3a7aba766",
"GITHUB_CLIENT_SECRET": "1726be1638095a19edd134c77bde3aa2ece1e5d8",
"PRIVATE_KEY": "\\"pem\\"",
"PRIVATE_KEY": ""pem"",
"WEBHOOK_SECRET": "webhook_secret",
},
],
Expand All @@ -119,31 +119,31 @@ exports[`Setup app > GET /probot/setup > throws a 400 Error if code is not provi
exports[`Setup app > GET /probot/success > returns a 200 response 1`] = `
"<!DOCTYPE html>
<html lang=\\"en\\" class=\\"height-full\\" data-color-mode=\\"auto\\" data-light-theme=\\"light\\" data-dark-theme=\\"dark\\">
<html lang="en" class="height-full" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">
<head>
<meta charset=\\"UTF-8\\">
<meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">
<meta http-equiv=\\"X-UA-Compatible\\" content=\\"ie=edge\\">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Setup probot | built with Probot</title>
<link rel=\\"icon\\" href=\\"/probot/static/probot-head.png\\">
<link rel=\\"stylesheet\\" href=\\"/probot/static/primer.css\\">
<link rel="icon" href="/probot/static/probot-head.png">
<link rel="stylesheet" href="/probot/static/primer.css">
</head>
<body class=\\"height-full bg-gray-light\\">
<div class=\\"d-flex flex-column flex-justify-center flex-items-center text-center height-full\\">
<img src=\\"/probot/static/robot.svg\\" alt=\\"Probot Logo\\" width=\\"100\\" class=\\"mb-6\\">
<div class=\\"box-shadow rounded-2 border p-6 bg-white\\">
<div class=\\"text-center\\">
<h1 class=\\"alt-h3 mb-2\\">Congrats! You have successfully installed your app!
<body class="height-full bg-gray-light">
<div class="d-flex flex-column flex-justify-center flex-items-center text-center height-full">
<img src="/probot/static/robot.svg" alt="Probot Logo" width="100" class="mb-6">
<div class="box-shadow rounded-2 border p-6 bg-white">
<div class="text-center">
<h1 class="alt-h3 mb-2">Congrats! You have successfully installed your app!
<br>
Checkout <a href=\\"https://probot.github.io/docs/webhooks/\\">Receiving webhooks</a> and <a href=\\"https://probot.github.io/docs/github-api/\\">Interacting with GitHub</a> to learn more!</h1>
Checkout <a href="https://probot.github.io/docs/webhooks/">Receiving webhooks</a> and <a href="https://probot.github.io/docs/github-api/">Interacting with GitHub</a> to learn more!</h1>
</div>
</div>
<div class=\\"mt-4\\">
<h4 class=\\"alt-h4 text-gray-light\\">Need help?</h4>
<div class=\\"d-flex flex-justify-center mt-2\\">
<a href=\\"https://probot.github.io/docs/\\" class=\\"btn btn-outline mr-2\\">Documentation</a>
<a href=\\"https://github.com/probot/probot/discussions\\" class=\\"btn btn-outline\\">Discuss on GitHub</a>
<div class="mt-4">
<h4 class="alt-h4 text-gray-light">Need help?</h4>
<div class="d-flex flex-justify-center mt-2">
<a href="https://probot.github.io/docs/" class="btn btn-outline mr-2">Documentation</a>
<a href="https://github.com/probot/probot/discussions" class="btn btn-outline">Discuss on GitHub</a>
</div>
</div>
</div>
Expand All @@ -163,7 +163,7 @@ exports[`Setup app > POST /probot/import > updates .env 1`] = `
[
{
"APP_ID": "foo",
"PRIVATE_KEY": "\\"bar\\"",
"PRIVATE_KEY": ""bar"",
"WEBHOOK_SECRET": "baz",
},
],
Expand Down
Loading

0 comments on commit d7ae857

Please sign in to comment.