Skip to content

Commit

Permalink
chore: add cwd to added test
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi committed Jul 16, 2023
1 parent 532c14f commit e0dbd09
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions test/lib-unit/exports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,16 @@ describe('lib exports', () => {
const logSpy = jest.spyOn(console, 'warn')

expect(
getExportPaths({
main: './dist/index.js',
exports: {
import: './dist/index.mjs',
require: './dist/index.cjs',
getExportPaths(
{
main: './dist/index.js',
exports: {
import: './dist/index.mjs',
require: './dist/index.cjs',
},
},
}),
cwd,
),
).toEqual({
'.': {
import: './dist/index.mjs',
Expand Down

0 comments on commit e0dbd09

Please sign in to comment.