Skip to content

Commit e8fbf24

Browse files
authored
Remove code and config specific to module template (#14)
- The `index.ts` and `index.test.ts` files in `src/` exist in the module template as examples, but we don't need them here. - Since we don't have any real tests in this repo at the moment, we need to tell Jest it's okay to run without tests and that coverage is 0%. - The Examples section in the PR template is specific to the module template and shouldn't be in derivative repos.
1 parent 08fd9b1 commit e8fbf24

File tree

4 files changed

+6
-29
lines changed

4 files changed

+6
-29
lines changed

.github/pull_request_template.md

-8
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,3 @@ Are there any issues or other links reviewers should consult to understand this
99
* Fixes #12345
1010
* See: #67890
1111
-->
12-
13-
## Examples
14-
15-
<!--
16-
Are there any examples of this change being used in another repository?
17-
18-
When considering changes to the MetaMask module template, it's strongly preferred that the change be experimented with in another repository first. This gives reviewers a better sense of how the change works, making it less likely the change will need to be reverted or adjusted later.
19-
-->

jest.config.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ module.exports = {
4242
coverageThreshold: {
4343
global: {
4444
branches: 0,
45-
functions: 12.5,
46-
lines: 4.16,
47-
statements: 4.16,
45+
functions: 0,
46+
lines: 0,
47+
statements: 0,
4848
},
4949
},
5050

@@ -96,6 +96,9 @@ module.exports = {
9696
// An enum that specifies notification mode. Requires { notify: true }
9797
// notifyMode: "failure-change",
9898

99+
// TODO: We don't have any tests right now, but we should add them.
100+
passWithNoTests: true,
101+
99102
// A preset that is used as a base for Jest's configuration
100103
preset: 'ts-jest',
101104

src/index.test.ts

-9
This file was deleted.

src/index.ts

-9
This file was deleted.

0 commit comments

Comments
 (0)