Skip to content

Commit

Permalink
chore: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ramos committed Jul 19, 2024
1 parent 7e77cf3 commit a63d87e
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 74 deletions.
10 changes: 9 additions & 1 deletion __test__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import test from 'ava';

import { getDefinedPackageManager, PackageManager } from '../index';
import {
getDefinedPackageManager,
PackageManager,
getProjectRootPath
} from '../index';

test('get defined package manager', (t) => {
t.is(getDefinedPackageManager(), PackageManager.Pnpm);
});

test('get project root path', (t) => {
t.is(getProjectRootPath(process.cwd()), process.cwd());
});
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,8 @@
"singleQuote": true,
"arrowParens": "always"
},
"packageManager": "pnpm@9.4.0"
"packageManager": "pnpm@9.4.0",
"dependencies": {
"@types/node": "^20.14.11"
}
}
16 changes: 16 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a63d87e

Please sign in to comment.