generated from napi-rs/package-template-pnpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Miguel Ramos
committed
Jul 19, 2024
1 parent
7e77cf3
commit a63d87e
Showing
4 changed files
with
101 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.