Skip to content

Commit 8fad29d

Browse files
committed
chore: enable strict null checks
1 parent c1db755 commit 8fad29d

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

tests/__snapshots__/ios.test.js.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ Object {
3333
}
3434
`;
3535

36+
exports[`direct set semver string and ignores non defined type 1`] = `null`;
37+
38+
exports[`direct set semver string and ignores non defined type 2`] = `
39+
Object {
40+
"version": "1.1.2",
41+
}
42+
`;
43+
3644
exports[`skip semVer when asked 1`] = `
3745
"// !$*UTF8*$!
3846
{

tests/ios.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,10 @@ test("direct set semver string", () => {
5252
expect(manager.pbx.content).toMatchSnapshot();
5353
expect(manager.packageJSON.content).toMatchSnapshot();
5454
});
55+
56+
test("direct set semver string and ignores non defined type", () => {
57+
const manager = makeDefaultManager({ semver: "1.1.2", type: null }).dryRun();
58+
59+
expect(manager.buildGradle.content).toMatchSnapshot();
60+
expect(manager.packageJSON.content).toMatchSnapshot();
61+
});

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"module": "CommonJS",
77
"target": "ES2016",
88
"declaration": true,
9-
"strict": true
9+
"strict": true,
10+
"strictNullChecks": true
1011
},
1112
"include": [
1213
"./src/*"

0 commit comments

Comments
 (0)