Skip to content

Commit

Permalink
chore(tests): remove util.promisify (#3996)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Jan 12, 2022
1 parent 05ed92c commit 874aed3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/command.deploy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ if (process.env.NETLIFY_TEST_DISABLE_LIVE !== 'true') {
plugin: {
onPreBuild: async ({ netlifyConfig }) => {
// eslint-disable-next-line node/global-require
const [fs, util] = [require('fs'), require('util')]
const [writeFile, mkdir] = [fs.writeFile, fs.mkdir].map(util.promisify)
const { mkdir, writeFile } = require('fs').promises

const generatedFunctionsDir = 'new_functions'
netlifyConfig.functions.directory = generatedFunctionsDir
Expand Down Expand Up @@ -748,4 +747,8 @@ if (process.env.NETLIFY_TEST_DISABLE_LIVE !== 'true') {
await callCli(['sites:delete', siteId, '--force'])
})
}

test('always pass, used for forked PRs since ava fails when no tests are present', (t) => {
t.pass()
})
/* eslint-enable require-await */

1 comment on commit 874aed3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

Package size: 356 MB

Please sign in to comment.