Skip to content

Commit c7b1647

Browse files
committed
code format
1 parent 23f015a commit c7b1647

File tree

10 files changed

+344
-325
lines changed

10 files changed

+344
-325
lines changed

index.d.ts

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,64 @@ import fs from 'fs-extra';
33
import globby from 'globby';
44

55
interface Target extends globby.GlobbyOptions {
6-
/**
7-
* Path or glob of what to copy.
8-
*/
9-
readonly src: string | readonly string[];
6+
/**
7+
* Path or glob of what to copy.
8+
*/
9+
readonly src: string | readonly string[];
1010

11-
/**
12-
* One or more destinations where to copy.
13-
* Should set "dest" or "file" param.
14-
*/
15-
readonly dest?: string | readonly string[];
11+
/**
12+
* One or more destinations where to copy.
13+
* Should set "dest" or "file" param.
14+
*/
15+
readonly dest?: string | readonly string[];
1616

17-
/**
18-
* Destination file.
19-
* If this param is set, the "dest", "rename" and "flatten" params will be ignored.
20-
*/
21-
readonly file?: string;
17+
/**
18+
* Destination file.
19+
* If this param is set, the "dest", "rename" and "flatten" params will be ignored.
20+
*/
21+
readonly file?: string;
2222

23-
/**
24-
* Change destination file or folder name.
25-
*/
26-
readonly rename?: string | Function;
23+
/**
24+
* Change destination file or folder name.
25+
*/
26+
readonly rename?: string | Function;
2727

28-
/**
29-
* Modify file contents.
30-
*/
31-
readonly transform?: Function;
28+
/**
29+
* Modify file contents.
30+
*/
31+
readonly transform?: Function;
3232
}
3333

3434
interface CopyOptions extends globby.GlobbyOptions, fs.CopyOptions {
35-
/**
36-
* Copy items once. Useful in watch mode.
37-
* @default false
38-
*/
39-
readonly copyOnce?: boolean;
35+
/**
36+
* Copy items once. Useful in watch mode.
37+
* @default false
38+
*/
39+
readonly copyOnce?: boolean;
4040

41-
/**
42-
* Remove the directory structure of copied files.
43-
* @default true
44-
*/
45-
readonly flatten?: boolean;
41+
/**
42+
* Remove the directory structure of copied files.
43+
* @default true
44+
*/
45+
readonly flatten?: boolean;
4646

47-
/**
48-
* Rollup hook the plugin should use.
49-
* @default 'buildEnd'
50-
*/
51-
readonly hook?: string;
47+
/**
48+
* Rollup hook the plugin should use.
49+
* @default 'buildEnd'
50+
*/
51+
readonly hook?: string;
5252

53-
/**
54-
* Array of targets to copy.
55-
* @default []
56-
*/
57-
readonly targets?: readonly Target[];
53+
/**
54+
* Array of targets to copy.
55+
* @default []
56+
*/
57+
readonly targets?: readonly Target[];
5858

59-
/**
60-
* Output copied items to console.
61-
* @default false
62-
*/
63-
readonly verbose?: boolean;
59+
/**
60+
* Output copied items to console.
61+
* @default false
62+
*/
63+
readonly verbose?: boolean;
6464
}
6565

6666
/**

jest.config.js

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
1+
/*
2+
* For a detailed explanation regarding each configuration property, visit:
3+
* https://jestjs.io/docs/configuration
4+
*/
5+
16
module.exports = {
2-
roots: [
3-
'<rootDir>/src',
4-
'<rootDir>/tests'
5-
],
7+
// Automatically clear mock calls, instances, contexts and results before every test
8+
clearMocks: true,
9+
10+
// Indicates whether the coverage information should be collected while executing the test
11+
collectCoverage: true,
12+
13+
// The directory where Jest should output its coverage files
14+
coverageDirectory: 'coverage',
15+
16+
// A list of paths to directories that Jest should use to search for files in
17+
roots: ['<rootDir>/src', '<rootDir>/tests'],
18+
19+
// Indicates whether each individual test should be reported during the run
20+
verbose: true,
21+
22+
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
623
watchPathIgnorePatterns: [
724
'<rootDir>/tests/fixtures/build',
825
'<rootDir>/tests/fixtures/dist',
926
'<rootDir>/tests/fixtures/src/index.js'
1027
]
11-
}
28+
};

0 commit comments

Comments
 (0)