Skip to content

Commit

Permalink
Absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
arsh73552 committed Jul 10, 2023
1 parent fc5eae8 commit 0c7ec9a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions __tests__/test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
const path = require('path');

// Get the current directory
const currentDirectory = __dirname;
console.log('Current directory:', currentDirectory);

// Move back one directory
const parentDirectory = path.resolve(currentDirectory, '..');
console.log('Parent directory:', parentDirectory);
test('1 + 1 = 2', () =>{
expect(1 + 1).toBe(2);
})

0 comments on commit 0c7ec9a

Please sign in to comment.