Skip to content

Commit bc4c78a

Browse files
authored
Merge pull request #640 from TobyAndToby/tb/skip-missing-optional
Dont throw if optional dependency cannot be found
2 parents 26c6fe9 + b67672f commit bc4c78a

File tree

13 files changed

+4150
-4
lines changed

13 files changed

+4150
-4
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# optional-dependencies
2+
3+
This project is used to end-2-end test how generate-license-file functions with optional
4+
dependencies that are not present on disk, such as in the case of platform specific dependencies,
5+
or deps that fail to install.
6+
7+
To test this case we just install using `--omit=optional`, so the optionals don't appear on disk.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2+
module.exports = {
3+
preset: "ts-jest",
4+
testEnvironment: "node",
5+
testMatch: ["**/*.spec.ts"],
6+
testTimeout: 20000,
7+
};

0 commit comments

Comments
 (0)