Skip to content

Commit

Permalink
fix: use make dir
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Feb 1, 2024
1 parent c6f6aa5 commit 1b8c738
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 14
node-version: 16
- name: yarn
run: yarn --frozen-lockfile
- name: flow
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"screenshot": "node test/screenshot.js",
"test:cli": "chmod +x dist/cli.js && ava test/cli.test.js",
"test:screenshot": "npm run build:report && npm run reg && npm run screenshot",
"test": "cross-env NODE_ENV=\"debug\" npm run build:report && npm run build && npm run test:cli && npm run test:screenshot"
"test": "cross-env NODE_ENV=\"debug\" npm run build:report && npm run build && npm run test:cli && npm run test:screenshot"
},
"engines": {
"node": ">=12"
Expand Down
2 changes: 1 addition & 1 deletion src/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import Mustache from 'mustache';
import * as detectDiff from 'x-img-diff-js';
import fs from 'fs';
import mkdirp from 'mkdirp';
import mkdirp from 'make-dir'; // $FlowIgnore
import path from 'path';
import * as xmlBuilder from 'xmlbuilder2';

Expand Down
2 changes: 1 addition & 1 deletion test/screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const server = http.createServer((req, res) => {

server.listen(3000);

const mkdirp = require('mkdirp');
const mkdirp = require('make-dir');

const puppeteer = require('puppeteer');

Expand Down

0 comments on commit 1b8c738

Please sign in to comment.