Closed laiso closed 4 months ago
Overview:
cli.test.ts
https://github.com/laiso/site2pdf/blob/d296bc01daf03e64831a18673b296931b5733299/tests/cli.test.ts#L4-L18
CLI File Path Update:
npx
bin/site2pdf.js
../index.ts
../src/index.ts
Jest Configuration Update:
moduleNameMapper
jest.config.js
site2pdf/*
<rootDir>/src/$1
Added Test Files and Fixtures:
index.html
tests/fixtures
sample.pdf
Directory Structure Changes:
index.ts
src/index.ts
tests
These changes add CLI integration tests and reorganize the project's directory structure.
Overview:
cli.test.ts
to implement CLI integration tests.https://github.com/laiso/site2pdf/blob/d296bc01daf03e64831a18673b296931b5733299/tests/cli.test.ts#L4-L18
CLI File Path Update:
npx
command inbin/site2pdf.js
from../index.ts
to../src/index.ts
.Jest Configuration Update:
moduleNameMapper
tojest.config.js
to map thesite2pdf/*
path to<rootDir>/src/$1
.Added Test Files and Fixtures:
cli.test.ts
to implement CLI integration tests.index.html
) totests/fixtures
.sample.pdf
) totests/fixtures
.Directory Structure Changes:
index.ts
tosrc/index.ts
.tests
directory.These changes add CLI integration tests and reorganize the project's directory structure.