Skip to content

Commit

Permalink
got tests running on node20
Browse files Browse the repository at this point in the history
  • Loading branch information
levibostian committed Nov 21, 2023
1 parent 42cabcc commit 6afdd2e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 40 deletions.
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
1 change: 0 additions & 1 deletion .yarnrc

This file was deleted.

38 changes: 3 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@
},
"devDependencies": {
"ava": "^3.1.0",
"codecov": "^3.0.0",
"dockerode": "^3.0.0",
"nyc": "^15.0.0",
"semantic-release": "^17.0.0",
"sinon": "^9.0.0",
"stream-buffers": "^3.0.2",
"xo": "^0.29.0"
"stream-buffers": "^3.0.2"
},
"files": [
"lib",
Expand All @@ -43,24 +38,8 @@
],
"license": "MIT",
"main": "index.js",
"nyc": {
"include": [
"lib/**/*.js",
"index.js"
],
"reporter": [
"json",
"text",
"html"
],
"all": true
},
"peerDependencies": {
"semantic-release": ">=16.0.0 <18.0.0"
},
"prettier": {
"printWidth": 120,
"trailingComma": "es5"
"semantic-release": ">=18.0.0"
},
"publishConfig": {
"access": "public"
Expand All @@ -70,17 +49,6 @@
"url": "https://github.com/levibostian/semantic-release-cocoapods.git"
},
"scripts": {
"codecov": "codecov -f coverage/coverage-final.json",
"lint": "xo",
"pretest": "npm run lint",
"semantic-release": "semantic-release",
"test": "nyc ava -v"
},
"xo": {
"prettier": true,
"space": true,
"rules": {
"unicorn/string-content": "off"
}
"test": "npx ava -v"
}
}
9 changes: 6 additions & 3 deletions test/prepare.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const path = require('path');
const test = require('ava');
const {outputFile, readFile} = require('fs-extra');
const tempy = require('tempy');
const {stub} = require('sinon');
const {WritableStreamBuffer} = require('stream-buffers');
const prepare = require('../lib/prepare');
Expand All @@ -14,7 +13,9 @@ test.beforeEach((t) => {
});

test('Update podspec', async (t) => {
const cwd = tempy.directory();
const {temporaryDirectory} = await import('tempy');

const cwd = temporaryDirectory();
const packagePath = path.resolve(cwd, 'Test.podspec');
await outputFile(packagePath, "s.version = '0.0.1'");

Expand All @@ -38,7 +39,9 @@ test('Update podspec', async (t) => {
});

test('Preserve indentation and newline', async (t) => {
const cwd = tempy.directory();
const {temporaryDirectory} = await import('tempy');

const cwd = temporaryDirectory();
const packagePath = path.resolve(cwd, 'Test.podspec');
await outputFile(
packagePath,
Expand Down

0 comments on commit 6afdd2e

Please sign in to comment.