-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test optimization] Fix logic to bypass jest's require cache (#4950)
- Loading branch information
1 parent
ac19207
commit 63b6cf8
Showing
4 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
integration-tests/ci-visibility/office-addin-mock/dependency.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require('office-addin-mock') | ||
|
||
function sum (a, b) { | ||
return a + b | ||
} | ||
|
||
module.exports = sum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const sum = require('./dependency') | ||
const { expect } = require('chai') | ||
|
||
test('can sum', () => { | ||
expect(sum(1, 2)).to.equal(3) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters