Skip to content

Commit 0145277

Browse files
committed
chore(JGIVEN-00): prettier everything
Signed-off-by: l-1squared <[email protected]>
1 parent d9ab4e0 commit 0145277

File tree

12 files changed

+37858
-37877
lines changed

12 files changed

+37858
-37877
lines changed

new/config/jest/SvgComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default function SvgComponent() {
2-
return null;
2+
return null;
33
}

new/config/jest/babelTransform.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88
// @remove-on-eject-end
9-
'use strict';
9+
"use strict";
1010

11-
const babelJest = require('babel-jest').default;
11+
const babelJest = require("babel-jest").default;
1212

1313
const hasJsxRuntime = (() => {
14-
if (process.env.DISABLE_NEW_JSX_TRANSFORM === 'true') {
15-
return false;
16-
}
14+
if (process.env.DISABLE_NEW_JSX_TRANSFORM === "true") {
15+
return false;
16+
}
1717

18-
try {
19-
require.resolve('react/jsx-runtime');
20-
return true;
21-
} catch (e) {
22-
return false;
23-
}
18+
try {
19+
require.resolve("react/jsx-runtime");
20+
return true;
21+
} catch (e) {
22+
return false;
23+
}
2424
})();
2525

2626
module.exports = babelJest.createTransformer({
27-
presets: [
28-
[
29-
require.resolve('babel-preset-react-app'),
30-
{
31-
runtime: hasJsxRuntime ? 'automatic' : 'classic',
32-
},
27+
presets: [
28+
[
29+
require.resolve("babel-preset-react-app"),
30+
{
31+
runtime: hasJsxRuntime ? "automatic" : "classic"
32+
}
33+
]
3334
],
34-
],
35-
babelrc: false,
36-
configFile: false,
35+
babelrc: false,
36+
configFile: false
3737
});

new/config/jest/cssTransform.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88
// @remove-on-eject-end
9-
'use strict';
9+
"use strict";
1010

1111
// This is a custom Jest transformer turning style imports into empty objects.
1212
// http://facebook.github.io/jest/docs/en/webpack.html
1313

1414
module.exports = {
15-
process() {
16-
return 'module.exports = {};';
17-
},
18-
getCacheKey() {
19-
// The output is always the same.
20-
return 'cssTransform';
21-
},
15+
process() {
16+
return "module.exports = {};";
17+
},
18+
getCacheKey() {
19+
// The output is always the same.
20+
return "cssTransform";
21+
}
2222
};

new/config/jest/fileTransform.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
'use strict';
1+
"use strict";
22

3-
const path = require('path');
3+
const path = require("path");
44

55
// This is a custom Jest transformer turning file imports into filenames.
66
// http://facebook.github.io/jest/docs/en/webpack.html
77

88
module.exports = {
9-
process(src, filename) {
10-
const assetFilename = JSON.stringify(path.basename(filename));
11-
return `module.exports = ${assetFilename};`;
12-
},
9+
process(src, filename) {
10+
const assetFilename = JSON.stringify(path.basename(filename));
11+
return `module.exports = ${assetFilename};`;
12+
}
1313
};

new/jest.config.json

Lines changed: 37 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,39 @@
11
{
2-
"roots": [
3-
"<rootDir>/src"
4-
],
5-
"collectCoverageFrom": [
6-
"src/**/*.{js,jsx,ts,tsx}",
7-
"!src/**/*.d.ts"
8-
],
9-
"setupFilesAfterEnv": [
10-
"<rootDir>/src/setupTests.ts"
11-
],
12-
"testMatch": [
13-
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
14-
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
15-
],
16-
"testEnvironment": "jsdom",
17-
"transform": {
18-
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
19-
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
20-
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
21-
},
22-
"transformIgnorePatterns": [
23-
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
24-
"^.+\\.module\\.(css|sass|scss)$"
25-
],
26-
"modulePaths": [],
27-
"moduleNameMapper": {
28-
"^react-native$": "react-native-web",
29-
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
30-
"^jsx:.+\\.svg": "<rootDir>/config/jest/SvgComponent.js"
31-
},
32-
"moduleFileExtensions": [
33-
"web.js",
34-
"js",
35-
"web.ts",
36-
"ts",
37-
"web.tsx",
38-
"tsx",
39-
"json",
40-
"web.jsx",
41-
"jsx",
42-
"node"
43-
],
44-
"watchPlugins": [
45-
"jest-watch-typeahead/filename",
46-
"jest-watch-typeahead/testname"
47-
],
48-
"resetMocks": true
2+
"roots": ["<rootDir>/src"],
3+
"collectCoverageFrom": ["src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts"],
4+
"setupFilesAfterEnv": ["<rootDir>/src/setupTests.ts"],
5+
"testMatch": [
6+
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
7+
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
8+
],
9+
"testEnvironment": "jsdom",
10+
"transform": {
11+
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
12+
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
13+
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
14+
},
15+
"transformIgnorePatterns": [
16+
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
17+
"^.+\\.module\\.(css|sass|scss)$"
18+
],
19+
"modulePaths": [],
20+
"moduleNameMapper": {
21+
"^react-native$": "react-native-web",
22+
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
23+
"^jsx:.+\\.svg": "<rootDir>/config/jest/SvgComponent.js"
24+
},
25+
"moduleFileExtensions": [
26+
"web.js",
27+
"js",
28+
"web.ts",
29+
"ts",
30+
"web.tsx",
31+
"tsx",
32+
"json",
33+
"web.jsx",
34+
"jsx",
35+
"node"
36+
],
37+
"watchPlugins": ["jest-watch-typeahead/filename", "jest-watch-typeahead/testname"],
38+
"resetMocks": true
4939
}

0 commit comments

Comments
 (0)