|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 |
| -exports[`CopyPlugin logging should logging 1`] = ` |
| 3 | +exports[`CopyPlugin logging should logging when "from" is a directory: logs 1`] = ` |
4 | 4 | Object {
|
5 |
| - "result": Array [ |
| 5 | + "logs": Array [ |
| 6 | + "add ./fixtures/directory as contextDependencies", |
| 7 | + "begin globbing './fixtures/directory/**/*' with a context of './fixtures/directory'", |
| 8 | + "determined './fixtures/directory' is a directory", |
| 9 | + "determined that './fixtures/directory/.dottedfile' should write to '.dottedfile'", |
| 10 | + "determined that './fixtures/directory/directoryfile.txt' should write to 'directoryfile.txt'", |
| 11 | + "determined that './fixtures/directory/nested/deep-nested/deepnested.txt' should write to 'nested/deep-nested/deepnested.txt'", |
| 12 | + "determined that './fixtures/directory/nested/nestedfile.txt' should write to 'nested/nestedfile.txt'", |
| 13 | + "end to adding additional assets", |
| 14 | + "found ./fixtures/directory/.dottedfile", |
| 15 | + "found ./fixtures/directory/directoryfile.txt", |
| 16 | + "found ./fixtures/directory/nested/deep-nested/deepnested.txt", |
| 17 | + "found ./fixtures/directory/nested/nestedfile.txt", |
| 18 | + "getting stats for './fixtures/directory' to determinate 'fromType'", |
| 19 | + "getting stats for './fixtures/directory/.dottedfile' to write to assets", |
| 20 | + "getting stats for './fixtures/directory/directoryfile.txt' to write to assets", |
| 21 | + "getting stats for './fixtures/directory/nested/deep-nested/deepnested.txt' to write to assets", |
| 22 | + "getting stats for './fixtures/directory/nested/nestedfile.txt' to write to assets", |
| 23 | + "processing from: 'directory' to: '.'", |
| 24 | + "reading './fixtures/directory/.dottedfile' to write to assets", |
| 25 | + "reading './fixtures/directory/directoryfile.txt' to write to assets", |
| 26 | + "reading './fixtures/directory/nested/deep-nested/deepnested.txt' to write to assets", |
| 27 | + "reading './fixtures/directory/nested/nestedfile.txt' to write to assets", |
6 | 28 | "start to adding additional assets",
|
7 |
| - "processing from: 'file.txt' to: '.'", |
8 |
| - "getting stats for './fixtures/file.txt' to determinate 'fromType'", |
9 |
| - "determined './fixtures/file.txt' is a file", |
| 29 | + "writing '.dottedfile' to compilation assets from './fixtures/directory/.dottedfile'", |
| 30 | + "writing 'directoryfile.txt' to compilation assets from './fixtures/directory/directoryfile.txt'", |
| 31 | + "writing 'nested/deep-nested/deepnested.txt' to compilation assets from './fixtures/directory/nested/deep-nested/deepnested.txt'", |
| 32 | + "writing 'nested/nestedfile.txt' to compilation assets from './fixtures/directory/nested/nestedfile.txt'", |
| 33 | + ], |
| 34 | +} |
| 35 | +`; |
| 36 | + |
| 37 | +exports[`CopyPlugin logging should logging when "from" is a file: logs 1`] = ` |
| 38 | +Object { |
| 39 | + "logs": Array [ |
10 | 40 | "add ./fixtures/file.txt as fileDependencies",
|
11 | 41 | "begin globbing './fixtures/file.txt' with a context of './fixtures'",
|
12 |
| - "found ./fixtures/file.txt", |
| 42 | + "determined './fixtures/file.txt' is a file", |
13 | 43 | "determined that './fixtures/file.txt' should write to 'file.txt'",
|
| 44 | + "end to adding additional assets", |
| 45 | + "found ./fixtures/file.txt", |
| 46 | + "getting stats for './fixtures/file.txt' to determinate 'fromType'", |
14 | 47 | "getting stats for './fixtures/file.txt' to write to assets",
|
| 48 | + "processing from: 'file.txt' to: '.'", |
15 | 49 | "reading './fixtures/file.txt' to write to assets",
|
| 50 | + "start to adding additional assets", |
16 | 51 | "writing 'file.txt' to compilation assets from './fixtures/file.txt'",
|
| 52 | + ], |
| 53 | +} |
| 54 | +`; |
| 55 | + |
| 56 | +exports[`CopyPlugin logging should logging when "from" is a glob: logs 1`] = ` |
| 57 | +Object { |
| 58 | + "logs": Array [ |
| 59 | + "add ./fixtures/directory as contextDependencies", |
| 60 | + "add ./fixtures/directory/directoryfile.txt as fileDependencies", |
| 61 | + "add ./fixtures/directory/nested/deep-nested/deepnested.txt as fileDependencies", |
| 62 | + "add ./fixtures/directory/nested/nestedfile.txt as fileDependencies", |
| 63 | + "begin globbing './fixtures/directory/**' with a context of './fixtures'", |
| 64 | + "determined './fixtures/directory/**' is a glob", |
| 65 | + "determined that './fixtures/directory/directoryfile.txt' should write to 'directory/directoryfile.txt'", |
| 66 | + "determined that './fixtures/directory/nested' should write to 'directory/nested'", |
| 67 | + "determined that './fixtures/directory/nested/deep-nested' should write to 'directory/nested/deep-nested'", |
| 68 | + "determined that './fixtures/directory/nested/deep-nested/deepnested.txt' should write to 'directory/nested/deep-nested/deepnested.txt'", |
| 69 | + "determined that './fixtures/directory/nested/nestedfile.txt' should write to 'directory/nested/nestedfile.txt'", |
17 | 70 | "end to adding additional assets",
|
| 71 | + "found ./fixtures/directory/directoryfile.txt", |
| 72 | + "found ./fixtures/directory/nested", |
| 73 | + "found ./fixtures/directory/nested/deep-nested", |
| 74 | + "found ./fixtures/directory/nested/deep-nested/deepnested.txt", |
| 75 | + "found ./fixtures/directory/nested/nestedfile.txt", |
| 76 | + "getting stats for './fixtures/directory/**' to determinate 'fromType'", |
| 77 | + "getting stats for './fixtures/directory/directoryfile.txt' to write to assets", |
| 78 | + "getting stats for './fixtures/directory/nested' to write to assets", |
| 79 | + "getting stats for './fixtures/directory/nested/deep-nested' to write to assets", |
| 80 | + "getting stats for './fixtures/directory/nested/deep-nested/deepnested.txt' to write to assets", |
| 81 | + "getting stats for './fixtures/directory/nested/nestedfile.txt' to write to assets", |
| 82 | + "processing from: 'directory/**' to: '.'", |
| 83 | + "reading './fixtures/directory/directoryfile.txt' to write to assets", |
| 84 | + "reading './fixtures/directory/nested/deep-nested/deepnested.txt' to write to assets", |
| 85 | + "reading './fixtures/directory/nested/nestedfile.txt' to write to assets", |
| 86 | + "skipping './fixtures/directory/nested' because it is empty directory", |
| 87 | + "skipping './fixtures/directory/nested/deep-nested' because it is empty directory", |
| 88 | + "start to adding additional assets", |
| 89 | + "writing 'directory/directoryfile.txt' to compilation assets from './fixtures/directory/directoryfile.txt'", |
| 90 | + "writing 'directory/nested/deep-nested/deepnested.txt' to compilation assets from './fixtures/directory/nested/deep-nested/deepnested.txt'", |
| 91 | + "writing 'directory/nested/nestedfile.txt' to compilation assets from './fixtures/directory/nested/nestedfile.txt'", |
18 | 92 | ],
|
19 | 93 | }
|
20 | 94 | `;
|
0 commit comments