Skip to content

Commit a7a3992

Browse files
greenkeeper[bot]pvdlg
authored andcommitted
chore(package): update ava to version 3.1.0
1 parent 0419dff commit a7a3992

10 files changed

+48
-50
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
"files": [
88
"test/**/*.test.js"
99
],
10-
"helpers": [
11-
"test/helpers/**/*"
12-
]
10+
"timeout": "2m"
1311
},
1412
"bugs": {
1513
"url": "https://github.com/semantic-release/npm/issues"
@@ -34,7 +32,7 @@
3432
"tempy": "^0.3.0"
3533
},
3634
"devDependencies": {
37-
"ava": "^2.0.0",
35+
"ava": "^3.1.0",
3836
"clear-module": "^4.0.0",
3937
"codecov": "^3.0.0",
4038
"delay": "^4.0.0",

test/get-channel.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import test from 'ava';
2-
import getChannel from '../lib/get-channel';
1+
const test = require('ava');
2+
const getChannel = require('../lib/get-channel');
33

44
test.serial('Get default channel', t => {
55
t.is(getChannel(undefined), 'latest');

test/get-pkg.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import path from 'path';
2-
import test from 'ava';
3-
import {outputJson, writeFile} from 'fs-extra';
4-
import tempy from 'tempy';
5-
import getPkg from '../lib/get-pkg';
1+
const path = require('path');
2+
const test = require('ava');
3+
const {outputJson, writeFile} = require('fs-extra');
4+
const tempy = require('tempy');
5+
const getPkg = require('../lib/get-pkg');
66

77
test('Verify name and version then return parsed package.json', async t => {
88
const cwd = tempy.directory();

test/get-registry.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import path from 'path';
2-
import test from 'ava';
3-
import {appendFile} from 'fs-extra';
4-
import tempy from 'tempy';
5-
import getRegistry from '../lib/get-registry';
1+
const path = require('path');
2+
const test = require('ava');
3+
const {appendFile} = require('fs-extra');
4+
const tempy = require('tempy');
5+
const getRegistry = require('../lib/get-registry');
66

77
test('Get default registry', t => {
88
const cwd = tempy.directory();

test/get-release-info.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import test from 'ava';
2-
import getReleaseInfo from '../lib/get-release-info';
1+
const test = require('ava');
2+
const getReleaseInfo = require('../lib/get-release-info');
33

44
test('Default registry and scoped module', async t => {
55
t.deepEqual(

test/helpers/npm-registry.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import Docker from 'dockerode';
2-
import getStream from 'get-stream';
3-
import got from 'got';
4-
import delay from 'delay';
5-
import pRetry from 'p-retry';
1+
const Docker = require('dockerode');
2+
const getStream = require('get-stream');
3+
const got = require('got');
4+
const delay = require('delay');
5+
const pRetry = require('p-retry');
66

77
const IMAGE = 'semanticrelease/npm-registry-docker:latest';
88
const SERVER_PORT = 25986;
@@ -76,4 +76,4 @@ async function stop() {
7676
await container.remove();
7777
}
7878

79-
export default {start, stop, authEnv, url};
79+
module.exports = {start, stop, authEnv, url};

test/integration.test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import path from 'path';
2-
import test from 'ava';
3-
import {outputJson, readJson, pathExists} from 'fs-extra';
4-
import execa from 'execa';
5-
import {spy} from 'sinon';
6-
import tempy from 'tempy';
7-
import clearModule from 'clear-module';
8-
import {WritableStreamBuffer} from 'stream-buffers';
9-
import npmRegistry from './helpers/npm-registry';
1+
const path = require('path');
2+
const test = require('ava');
3+
const {outputJson, readJson, pathExists} = require('fs-extra');
4+
const execa = require('execa');
5+
const {spy} = require('sinon');
6+
const tempy = require('tempy');
7+
const clearModule = require('clear-module');
8+
const {WritableStreamBuffer} = require('stream-buffers');
9+
const npmRegistry = require('./helpers/npm-registry');
1010

1111
/* eslint camelcase: ["error", {properties: "never"}] */
1212

test/prepare.test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import path from 'path';
2-
import test from 'ava';
3-
import {outputJson, readJson, outputFile, readFile, pathExists, appendFile} from 'fs-extra';
4-
import tempy from 'tempy';
5-
import execa from 'execa';
6-
import {stub} from 'sinon';
7-
import {WritableStreamBuffer} from 'stream-buffers';
8-
import prepare from '../lib/prepare';
1+
const path = require('path');
2+
const test = require('ava');
3+
const {outputJson, readJson, outputFile, readFile, pathExists, appendFile} = require('fs-extra');
4+
const tempy = require('tempy');
5+
const execa = require('execa');
6+
const {stub} = require('sinon');
7+
const {WritableStreamBuffer} = require('stream-buffers');
8+
const prepare = require('../lib/prepare');
99

1010
test.beforeEach(t => {
1111
t.context.log = stub();

test/set-npmrc-auth.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import path from 'path';
2-
import test from 'ava';
3-
import {readFile, appendFile} from 'fs-extra';
4-
import {stub} from 'sinon';
5-
import tempy from 'tempy';
6-
import clearModule from 'clear-module';
1+
const path = require('path');
2+
const test = require('ava');
3+
const {readFile, appendFile} = require('fs-extra');
4+
const {stub} = require('sinon');
5+
const tempy = require('tempy');
6+
const clearModule = require('clear-module');
77

88
const {HOME} = process.env;
99
const cwd = process.cwd();

test/verify-config.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import test from 'ava';
2-
import {stub} from 'sinon';
3-
import verify from '../lib/verify-config';
1+
const test = require('ava');
2+
const {stub} = require('sinon');
3+
const verify = require('../lib/verify-config');
44

55
test.beforeEach(t => {
66
// Stub the logger functions

0 commit comments

Comments
 (0)