@@ -12,7 +12,7 @@ import {readFileSync} from 'fs';
12
12
import path from 'path' ;
13
13
import { rimrafSync } from 'rimraf' ;
14
14
15
- describe ( 'x_google_ignoreList source map extension' , ( ) => {
15
+ describe ( 'ignoreList source map extension' , ( ) => {
16
16
jest . setTimeout ( 60 * 1000 ) ;
17
17
18
18
const pathToExtensionsPackage = path . resolve ( __dirname , '..' , '..' ) ;
@@ -30,26 +30,16 @@ describe('x_google_ignoreList source map extension', () => {
30
30
} ) ;
31
31
32
32
describe ( 'for dev builds' , ( ) => {
33
- it ( 'should include only sources with /node_modules/ and /webpack/ in path ' , async ( ) => {
33
+ it ( 'should not ignore list anything ' , async ( ) => {
34
34
await exec ( 'yarn build:chrome:local' , {
35
35
cwd : pathToExtensionsPackage ,
36
36
} ) ;
37
37
38
38
const sourceMapJSON = readFileSync ( pathToSourceMap ) ;
39
39
const sourceMap = JSON . parse ( sourceMapJSON ) ;
40
40
41
- const { sources, x_google_ignoreList} = sourceMap ;
42
-
43
- const expectedIgnoreList = [ ] ;
44
- for ( let sourceIndex = 0 ; sourceIndex < sources . length ; ++ sourceIndex ) {
45
- const source = sources [ sourceIndex ] ;
46
-
47
- if ( source . includes ( '/node_modules/' ) || source . includes ( '/webpack/' ) ) {
48
- expectedIgnoreList . push ( sourceIndex ) ;
49
- }
50
- }
51
-
52
- expect ( x_google_ignoreList ) . toEqual ( expectedIgnoreList ) ;
41
+ const { ignoreList} = sourceMap ;
42
+ expect ( ignoreList ) . toEqual ( [ ] ) ;
53
43
} ) ;
54
44
} ) ;
55
45
@@ -60,9 +50,9 @@ describe('x_google_ignoreList source map extension', () => {
60
50
const sourceMapJSON = readFileSync ( pathToSourceMap ) ;
61
51
const sourceMap = JSON . parse ( sourceMapJSON ) ;
62
52
63
- const { sources, x_google_ignoreList } = sourceMap ;
53
+ const { sources, ignoreList } = sourceMap ;
64
54
65
- expect ( sources . length ) . toBe ( x_google_ignoreList . length ) ;
55
+ expect ( sources . length ) . toBe ( ignoreList . length ) ;
66
56
} ) ;
67
57
} ) ;
68
58
} ) ;
0 commit comments