Skip to content

Commit 5f77033

Browse files
fix: deactivate Perfbeacon plugin (#1319)
* fix: deactivate plugin * chore: skip test for deactivated plugins
1 parent 674a6c6 commit 5f77033

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

site/plugins.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,8 @@
535535
"name": "PerfBeacon",
536536
"package": "netlify-build-plugin-perfbeacon",
537537
"repo": "https://github.com/perfbeacon/netlify-build-plugin-perfbeacon",
538-
"version": "1.0.3"
538+
"version": "1.0.3",
539+
"status": "DEACTIVATED"
539540
},
540541
{
541542
"author": "rayriffy",

test/main.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const getMajorVersion = function (version) {
5959
/* eslint-disable max-nested-callbacks */
6060
// eslint-disable-next-line max-lines-per-function, max-statements
6161
pluginsList.forEach((plugin) => {
62-
const { package: packageName, repo, version, name, compatibility, variables, workflow } = plugin
62+
const { package: packageName, repo, version, name, compatibility, variables, workflow, status } = plugin
6363

6464
Object.entries(plugin).forEach(([attribute, value]) => {
6565
test(`Plugin attribute "${attribute}" should have a proper shape: ${packageName}`, (t) => {
@@ -85,9 +85,11 @@ pluginsList.forEach((plugin) => {
8585
await t.notThrowsAsync(manifest(`${packageName}@${version}`))
8686
})
8787

88-
test(`Plugin repository URL should be valid: ${packageName}`, async (t) => {
89-
await t.notThrowsAsync(got(repo))
90-
})
88+
if (status !== 'DEACTIVATED') {
89+
test(`Plugin repository URL should be valid: ${packageName}`, async (t) => {
90+
await t.notThrowsAsync(got(repo))
91+
})
92+
}
9193

9294
test(`Plugin name should not include 'plugin': ${packageName}`, (t) => {
9395
t.false(typeof name === 'string' && name.toLowerCase().includes('plugin'))

0 commit comments

Comments
 (0)