This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
-
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.
Merge pull request #13 from celo-org/aaronmgdr/version2
CeloReserve.org V2
- Loading branch information
Showing
86 changed files
with
6,191 additions
and
6,956 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"next/babel", | ||
{ | ||
"preset-react": { | ||
"runtime": "automatic", | ||
"importSource": "@emotion/react" | ||
} | ||
} | ||
] | ||
], | ||
"plugins": ["@emotion"] | ||
} |
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 @@ | ||
# keys with NEXT_PUBLIC_ Prefix are sent to browser | ||
# https://nextjs.org/docs/basic-features/environment-variables | ||
|
||
AIRTABLE_API_KEY=AIRTABLE_KEY | ||
|
||
NEXT_PUBLIC_FATHOM_KEY=ANALYTICS | ||
|
||
|
||
|
||
ETHERSCAN_KEY=KEY_HERE |
Binary file not shown.
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,22 @@ | ||
module.exports = { | ||
preset: "ts-jest", | ||
testEnvironment: "jsdom", | ||
globals: { | ||
"ts-jest": { | ||
isolatedModules: true, | ||
tsconfig: "tsconfig.jest.json", | ||
useBabelrc: true, | ||
}, | ||
}, | ||
moduleNameMapper: { | ||
"\\.(png|jpg|jpeg|gif|svg)(\\?[a-z]+)?$": | ||
"<rootDir>/src/__mocks__/ImageStub.ts", | ||
"\\.(css|scss)$": "<rootDir>/src/__mocks__/ImageStub.ts", | ||
"^src/(.*)$": "<rootDir>/src/$1", | ||
"^public/(.*)$": "<rootDir>/public/$1", | ||
}, | ||
transform: { | ||
"^.+\\.tsx?$": "babel-jest", | ||
}, | ||
setupFilesAfterEnv: ["./jestAfterSetup.ts"], | ||
} |
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,26 @@ | ||
import { server } from 'src/mocks/server' | ||
import fetch from "node-fetch" | ||
import MockDate from "mockdate" | ||
import AirtableAPI from 'airtable' | ||
|
||
// import '@testing-library/jest-dom' | ||
// import { createSerializer } from "@emotion/jest" | ||
// import "@testing-library/jest-dom/extend-expect" | ||
// @ts-ignore | ||
global.fetch = fetch | ||
// expect.addSnapshotSerializer(createSerializer()) | ||
AirtableAPI.apiKey = "TEST_AIRTABLE_KEY" | ||
// Establish API mocking before all tests. | ||
beforeAll(() => { | ||
MockDate.set("2020-04-24") | ||
server.listen() | ||
|
||
}) | ||
// Reset any request handlers that we may add during the tests, | ||
// so they don't affect other tests. | ||
afterEach(() => server.resetHandlers()) | ||
// Clean up after the tests are finished. | ||
afterAll(() => { | ||
MockDate.reset() | ||
server.close() | ||
}) |
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
Binary file not shown.
Binary file not shown.
Oops, something went wrong.