Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

chore: run Netlify deploy on Node v16 (#4778) [ci skip]

Outsider9fbf3aeb2e6c
diff --git a/docs/_data/supporters.js b/docs/_data/supporters.js
index 4f631460..6fcd4011 100755
--- a/docs/_data/supporters.js
+++ b/docs/_data/supporters.js
@@ -18,7 +18,7 @@
'use strict';
const {loadImage} = require('canvas');
-const {writeFile, mkdir, rmdir} = require('fs').promises;
+const {writeFile, mkdir, rm} = require('fs').promises;
const {resolve} = require('path');
const debug = require('debug')('mocha:docs:data:supporters');
const needle = require('needle');
@@ -225,7 +225,7 @@ const getSupporters = async () => {
}
);
- await rmdir(SUPPORTER_IMAGE_PATH, {recursive: true});
+ await rm(SUPPORTER_IMAGE_PATH, {recursive: true, force: true});
debug('blasted %s', SUPPORTER_IMAGE_PATH);
await mkdir(SUPPORTER_IMAGE_PATH, {recursive: true});
debug('created %s', SUPPORTER_IMAGE_PATH);
diff --git a/netlify.toml b/netlify.toml
index e9ee7d44..36fe1e9a 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -14,8 +14,8 @@
[build.environment]
DEBUG = "mocha:docs*"
- NODE_VERSION = "12"
- RUBY_VERSION = "2.7.1"
+ NODE_VERSION = "16"
+ RUBY_VERSION = "2.7.2"
[context.deploy-preview]
command = "npm start docs"