-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make headers isomorphic Move to cross-fetch Get rid of require statement Import Headers from cross-fetch Part of #86 Acceptance Cleaned! PASS tests/unit/service.test.ts PASS tests/unit/signer.test.ts PASS tests/unit/types.test.ts PASS tests/unit/http.test.ts Test Suites: 4 passed, 4 total Tests: 16 passed, 16 total Snapshots: 0 total Time: 3.249 s, estimated 5 s Ran all test suites matching /.\/tests\/unit/i. PASS tests/integration/client.test.ts ✓ Client: register service (1 ms) ✓ Client: no auth opts (5 ms) ✓ Client: abs URL (2 ms) ✓ Client: abs URL with base (1 ms) ✓ Client: merge handlers ✓ Client: ak/sk auth; request headers (9 ms) ○ skipped Client: authToken ○ skipped Client: authAKSK ○ skipped Client: get not registered service ○ skipped Client: no ak/sk opts ○ skipped Client: ak/sk opts Test Suites: 1 passed, 1 total Tests: 5 skipped, 6 passed, 11 total Snapshots: 0 total Time: 1.447 s, estimated 5 s Ran all test suites matching /.\/tests\/integration/i. PASS tests/functional/services/identity.test.ts PASS tests/functional/client.test.ts (6.194 s) PASS tests/functional/services/compute.test.ts (8.168 s) PASS tests/functional/services/swift.test.ts (8.928 s) PASS tests/functional/services/image.test.ts (40.03 s) ● Console console.log Loaded 7 pages at Pager.<anonymous> (src/oms/services/base.ts:87:17) console.log Loaded 7 pages at Pager.<anonymous> (src/oms/services/base.ts:87:17) PASS tests/functional/services/networkv1.test.ts (51.4 s) Test Suites: 6 passed, 6 total Tests: 6 skipped, 36 passed, 42 total Snapshots: 0 total Time: 51.726 s, estimated 53 s Ran all test suites matching /.\/tests\/functional/i. coverage files in coverage merged into coverage/merged-coverage.json Reviewed-by: Rodion Gyrbu <[email protected]> Reviewed-by: Anton Sidelnikov <None> Reviewed-by: None <None>
- Loading branch information
1 parent
9a7abf8
commit 518e222
Showing
10 changed files
with
72 additions
and
60 deletions.
There are no files selected for viewing
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
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
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
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,10 @@ | ||
// Thanks to @ctaylo21 at https://github.com/jefflau/jest-fetch-mock/issues/122#issuecomment-542273089 | ||
|
||
import { GlobalWithFetchMock } from 'jest-fetch-mock'; | ||
|
||
const customGlobal = global as unknown as GlobalWithFetchMock; | ||
customGlobal.fetch = require('jest-fetch-mock'); | ||
customGlobal.fetchMock = customGlobal.fetch; | ||
|
||
jest.setMock('cross-fetch', fetch); | ||
fetchMock.dontMock() |
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
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