Skip to content

Commit

Permalink
fix(tests): use fs.unlink instead of fs.rm
Browse files Browse the repository at this point in the history
  • Loading branch information
uladkasach committed Nov 24, 2022
1 parent e341fea commit 392f410
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci-on-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ jobs:
- name: checkout
uses: actions/checkout@v1

- uses: actions/setup-node@v1
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'

- name: install
run: npm install

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: '16.x'
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'

- name: install
Expand Down
2 changes: 1 addition & 1 deletion src/cache.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ describe('cache', () => {
});
it('should keep accurate track of keys', async () => {
// clear out the old keys, so that other tests dont affect the keycounting we want to do here
fs.rm(
fs.unlink(
`${directoryToPersistTo.mounted.path}/${RESERVED_CACHE_KEY_FOR_VALID_KEYS}`,
);

Expand Down

0 comments on commit 392f410

Please sign in to comment.