Skip to content

Commit a57f997

Browse files
dkundelphilnash
authored andcommitted
fix: add pagination to list requests (#1) (#13)
fix #1
1 parent 89d1238 commit a57f997

14 files changed

+2982
-207
lines changed

Diff for: jest.config.js

+177
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
// For a detailed explanation regarding each configuration property, visit:
2+
// https://jestjs.io/docs/en/configuration.html
3+
4+
module.exports = {
5+
preset: 'ts-jest',
6+
7+
// Automatically clear mock calls and instances between every test
8+
clearMocks: true,
9+
10+
// The directory where Jest should output its coverage files
11+
coverageDirectory: 'coverage',
12+
13+
// A set of global variables that need to be available in all test environments
14+
globals: {
15+
'ts-jest': {
16+
tsConfig: 'tsconfig.json',
17+
},
18+
},
19+
// The test environment that will be used for testing
20+
testEnvironment: 'node',
21+
22+
// All imported modules in your tests should be mocked automatically
23+
// automock: false,
24+
25+
// Stop running tests after the first failure
26+
// bail: false,
27+
28+
// Respect "browser" field in package.json when resolving modules
29+
// browser: false,
30+
31+
// The directory where Jest should store its cached dependency information
32+
// cacheDirectory: "/var/folders/hm/3p38c0353l3gvb3q_m69n1qh2hfrd1/T/jest_1e8c69",
33+
34+
// Indicates whether the coverage information should be collected while executing the test
35+
// collectCoverage: false,
36+
37+
// An array of glob patterns indicating a set of files for which coverage information should be collected
38+
// collectCoverageFrom: null,
39+
40+
// An array of regexp pattern strings used to skip coverage collection
41+
// coveragePathIgnorePatterns: [
42+
// "/node_modules/"
43+
// ],
44+
45+
// A list of reporter names that Jest uses when writing coverage reports
46+
// coverageReporters: [
47+
// "json",
48+
// "text",
49+
// "lcov",
50+
// "clover"
51+
// ],
52+
53+
// An object that configures minimum threshold enforcement for coverage results
54+
// coverageThreshold: null,
55+
56+
// Make calling deprecated APIs throw helpful error messages
57+
// errorOnDeprecated: false,
58+
59+
// Force coverage collection from ignored files usin a array of glob patterns
60+
// forceCoverageMatch: [],
61+
62+
// A path to a module which exports an async function that is triggered once before all test suites
63+
// globalSetup: null,
64+
65+
// A path to a module which exports an async function that is triggered once after all test suites
66+
// globalTeardown: null,
67+
68+
// An array of directory names to be searched recursively up from the requiring module's location
69+
// moduleDirectories: [
70+
// "node_modules"
71+
// ],
72+
73+
// An array of file extensions your modules use
74+
// moduleFileExtensions: [
75+
// "js",
76+
// "json",
77+
// "jsx",
78+
// "node"
79+
// ],
80+
81+
// A map from regular expressions to module names that allow to stub out resources with a single module
82+
// moduleNameMapper: {},
83+
84+
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
85+
// modulePathIgnorePatterns: [],
86+
87+
// Activates notifications for test results
88+
// notify: false,
89+
90+
// An enum that specifies notification mode. Requires { notify: true }
91+
// notifyMode: "always",
92+
93+
// Run tests from one or more projects
94+
// projects: null,
95+
96+
// Use this configuration option to add custom reporters to Jest
97+
// reporters: undefined,
98+
99+
// Automatically reset mock state between every test
100+
// resetMocks: false,
101+
102+
// Reset the module registry before running each individual test
103+
// resetModules: false,
104+
105+
// A path to a custom resolver
106+
// resolver: null,
107+
108+
// Automatically restore mock state between every test
109+
// restoreMocks: false,
110+
111+
// The root directory that Jest should scan for tests and modules within
112+
// rootDir: null,
113+
114+
// A list of paths to directories that Jest should use to search for files in
115+
// roots: [
116+
// "<rootDir>"
117+
// ],
118+
119+
// Allows you to use a custom runner instead of Jest's default test runner
120+
// runner: "jest-runner",
121+
122+
// The paths to modules that run some code to configure or set up the testing environment before each test
123+
// setupFiles: [],
124+
125+
// The path to a module that runs some code to configure or set up the testing framework before each test
126+
// setupTestFrameworkScriptFile: null,
127+
128+
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
129+
// snapshotSerializers: [],
130+
131+
// Options that will be passed to the testEnvironment
132+
// testEnvironmentOptions: {},
133+
134+
// Adds a location field to test results
135+
// testLocationInResults: false,
136+
137+
// The glob patterns Jest uses to detect test files
138+
testMatch: ['**/__tests__/**/*.ts?(x)', '**/?(*.)+(spec|test).ts?(x)'],
139+
140+
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
141+
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
142+
143+
// The regexp pattern Jest uses to detect test files
144+
// testRegex: "",
145+
146+
// This option allows the use of a custom results processor
147+
// testResultsProcessor: null,
148+
149+
// This option allows use of a custom test runner
150+
// testRunner: "jasmine2",
151+
152+
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
153+
// testURL: "about:blank",
154+
155+
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
156+
// timers: "real",
157+
158+
// A map from regular expressions to paths to transformers
159+
// transform: null,
160+
161+
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
162+
// transformIgnorePatterns: [
163+
// "/node_modules/"
164+
// ],
165+
166+
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
167+
// unmockedModulePathPatterns: undefined,
168+
169+
// Indicates whether each individual test should be reported during the run
170+
// verbose: null,
171+
172+
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
173+
// watchPathIgnorePatterns: [],
174+
175+
// Whether to use watchman for file crawling
176+
// watchman: true,
177+
};

0 commit comments

Comments
 (0)