Skip to content

Commit

Permalink
Merge pull request #3 from arsh73552/main
Browse files Browse the repository at this point in the history
Absolute paths
  • Loading branch information
arsh73552 authored Jul 10, 2023
2 parents ce3404c + 0c7ec9a commit 348ef41
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 348ef41

Please sign in to comment.