Skip to content

Commit

Permalink
ci: remove deprecated node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Sep 20, 2023
1 parent ad04af6 commit fd49504
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [12, 14]
node: [16, 18, 20]
steps:
- uses: actions/checkout@v2
- name: Setup node
Expand Down
2 changes: 1 addition & 1 deletion jest/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export const runPromptWithAnswers = (args, answers, testPath) => {
// Cleanup
export const rmTempDir = (tempDirPath) => {
if (fs.existsSync(tempDirPath)) {
fs.rmdirSync(tempDirPath, { recursive: true });
fs.rm(tempDirPath, { recursive: true });
}
};
6 changes: 3 additions & 3 deletions src/utils/__tests__/helpers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ beforeAll(() => {

afterAll(() => {
// copyDirSync()
fs.rmdirSync(srcPath, { recursive: true });
fs.rmdirSync(destPath, { recursive: true });
fs.rm(srcPath, { recursive: true });
fs.rm(destPath, { recursive: true });

// fetchProjectConfig()
fs.rmdirSync(genPath, { recursive: true });
fs.rm(genPath, { recursive: true });
});

test('copyDirSync()', () => {
Expand Down

0 comments on commit fd49504

Please sign in to comment.