prefer fs/promises

pull/387/head
Frostebite 2022-04-21 22:58:58 +01:00
parent 165e4b1772
commit 0e9c5ba70a
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
import fs from 'fs';
import { stat } from 'fs/promises';
describe('Integrity tests', () => {
describe('package-lock.json', () => {
it('does not exist', async () => {
await expect(fs.promises.stat(`${process.cwd()}/package-lock.json`)).rejects.toThrowError();
await expect(stat(`${process.cwd()}/package-lock.json`)).rejects.toThrowError();
});
});
});