Skip to content

Conversation

JasoonS
Copy link
Contributor

@JasoonS JasoonS commented Mar 26, 2025

No description provided.

"build": "tsc --build",
"watch": "tsc --watch",
"mocha": "ts-mocha test/**/*.ts",
"mocha": "ts-mocha -p tsconfig.json --require ts-node/register --exit test/**/*.ts",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this you can litraly put code like this in your typescript tests and they just pass 😬

    let wrongType: boolean = "true"; // Hint - it is a string
    console.log(wrongType, typeof wrongType, "wrongType");

Comment on lines +16 to +20
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"noImplicitThis": true,
"alwaysStrict": true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it is good to add these flags too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏 - awesome. Thanks, will give that a read

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants