@@ -4,6 +4,12 @@ The actual snapshot is saved in `test.js.snap`.
4
4
5
5
Generated by [ AVA] ( https://avajs.dev ) .
6
6
7
+ ## throws error if local id is not resolved
8
+
9
+ > Snapshot 1
10
+
11
+ 'Could not resolve \'./foo\' from unresolved-local.js'
12
+
7
13
## allows custom moduleDirectories with legacy customResolveOptions.moduleDirectory
8
14
9
15
> Snapshot 1
@@ -17,21 +23,6 @@ Generated by [AVA](https://avajs.dev).
17
23
},
18
24
]
19
25
20
- ## handles package side-effects
21
-
22
- > Snapshot 1
23
-
24
- [
25
- 'array-dep1',
26
- 'array-dep3',
27
- 'array-dep5',
28
- 'array-index',
29
- 'false-dep1',
30
- 'true-dep1',
31
- 'true-dep2',
32
- 'true-index',
33
- ]
34
-
35
26
## ignores deep-import non-modules
36
27
37
28
> Snapshot 1
@@ -47,129 +38,141 @@ Generated by [AVA](https://avajs.dev).
47
38
},
48
39
]
49
40
50
- ## ignores the package.json sideEffects property for files in root package with "ignoreSideEffectsForRoot" option
41
+ ## respects the package.json sideEffects property for files in root package by default
51
42
52
43
> Snapshot 1
53
44
54
45
`'use strict';␊
55
46
␊
56
- console.log('side effect ');␊
47
+ console.log('main ');␊
57
48
`
58
49
59
- ## respects the package.json sideEffects property for files in root package by default
50
+ ## ignores the package.json sideEffects property for files in root package with "ignoreSideEffectsForRoot" option
60
51
61
52
> Snapshot 1
62
53
63
54
`'use strict';␊
64
55
␊
56
+ console.log('side effect');␊
57
+ ␊
58
+ console.log('main');␊
65
59
`
66
60
67
- ## throws error for removed customResolveOptions.basedir option
61
+ ## handles package side-effects
68
62
69
63
> Snapshot 1
70
64
71
- Error {
72
- message: 'node-resolve: `customResolveOptions.basedir` is no longer an option. If you need this, please open an issue.',
73
- }
65
+ [
66
+ 'array-dep1',
67
+ 'array-dep3',
68
+ 'array-dep5',
69
+ 'array-index',
70
+ 'false-dep1',
71
+ 'true-dep1',
72
+ 'true-dep2',
73
+ 'true-index',
74
+ ]
74
75
75
- ## throws error for removed customResolveOptions.extensions option
76
+ ## throws error for removed customResolveOptions.preserveSymlinks option
76
77
77
78
> Snapshot 1
78
79
79
80
Error {
80
- message: 'node-resolve: `customResolveOptions.extensions ` is no longer an option. If you need this, please open an issue .',
81
+ message: 'node-resolve: `customResolveOptions.preserveSymlinks ` is no longer an option. We now always use the rollup `preserveSymlinks` option .',
81
82
}
82
83
83
- ## throws error for removed customResolveOptions.includeCoreModules option
84
+ ## throws error for removed customResolveOptions.basedir option
84
85
85
86
> Snapshot 1
86
87
87
88
Error {
88
- message: 'node-resolve: `customResolveOptions.includeCoreModules ` is no longer an option. If you need this, please open an issue.',
89
+ message: 'node-resolve: `customResolveOptions.basedir ` is no longer an option. If you need this, please open an issue.',
89
90
}
90
91
91
- ## throws error for removed customResolveOptions.isDirectory option
92
+ ## throws error for removed customResolveOptions.package option
92
93
93
94
> Snapshot 1
94
95
95
96
Error {
96
- message: 'node-resolve: `customResolveOptions.isDirectory ` is no longer an option. If you need this, please open an issue.',
97
+ message: 'node-resolve: `customResolveOptions.package ` is no longer an option. If you need this, please open an issue.',
97
98
}
98
99
99
- ## throws error for removed customResolveOptions.isFile option
100
+ ## throws error for removed customResolveOptions.extensions option
100
101
101
102
> Snapshot 1
102
103
103
104
Error {
104
- message: 'node-resolve: `customResolveOptions.isFile ` is no longer an option. If you need this, please open an issue.',
105
+ message: 'node-resolve: `customResolveOptions.extensions ` is no longer an option. If you need this, please open an issue.',
105
106
}
106
107
107
- ## throws error for removed customResolveOptions.package option
108
+ ## throws error for removed customResolveOptions.includeCoreModules option
108
109
109
110
> Snapshot 1
110
111
111
112
Error {
112
- message: 'node-resolve: `customResolveOptions.package ` is no longer an option. If you need this, please open an issue.',
113
+ message: 'node-resolve: `customResolveOptions.includeCoreModules ` is no longer an option. If you need this, please open an issue.',
113
114
}
114
115
115
- ## throws error for removed customResolveOptions.packageFilter option
116
+ ## throws error for removed customResolveOptions.readFile option
116
117
117
118
> Snapshot 1
118
119
119
120
Error {
120
- message: 'node-resolve: `customResolveOptions.packageFilter ` is no longer an option. If you need this, please open an issue.',
121
+ message: 'node-resolve: `customResolveOptions.readFile ` is no longer an option. If you need this, please open an issue.',
121
122
}
122
123
123
- ## throws error for removed customResolveOptions.packageIterator option
124
+ ## throws error for removed customResolveOptions.isFile option
124
125
125
126
> Snapshot 1
126
127
127
128
Error {
128
- message: 'node-resolve: `customResolveOptions.packageIterator ` is no longer an option. If you need this, please open an issue.',
129
+ message: 'node-resolve: `customResolveOptions.isFile ` is no longer an option. If you need this, please open an issue.',
129
130
}
130
131
131
- ## throws error for removed customResolveOptions.pathFilter option
132
+ ## throws error for removed customResolveOptions.isDirectory option
132
133
133
134
> Snapshot 1
134
135
135
136
Error {
136
- message: 'node-resolve: `customResolveOptions.pathFilter ` is no longer an option. If you need this, please open an issue.',
137
+ message: 'node-resolve: `customResolveOptions.isDirectory ` is no longer an option. If you need this, please open an issue.',
137
138
}
138
139
139
- ## throws error for removed customResolveOptions.paths option
140
+ ## throws error for removed customResolveOptions.realpath option
140
141
141
142
> Snapshot 1
142
143
143
144
Error {
144
- message: 'node-resolve: `customResolveOptions.paths ` is no longer an option. If you need this, please open an issue.',
145
+ message: 'node-resolve: `customResolveOptions.realpath ` is no longer an option. If you need this, please open an issue.',
145
146
}
146
147
147
- ## throws error for removed customResolveOptions.preserveSymlinks option
148
+ ## throws error for removed customResolveOptions.packageFilter option
148
149
149
150
> Snapshot 1
150
151
151
152
Error {
152
- message: 'node-resolve: `customResolveOptions.preserveSymlinks ` is no longer an option. We now always use the rollup `preserveSymlinks` option .',
153
+ message: 'node-resolve: `customResolveOptions.packageFilter ` is no longer an option. If you need this, please open an issue .',
153
154
}
154
155
155
- ## throws error for removed customResolveOptions.readFile option
156
+ ## throws error for removed customResolveOptions.pathFilter option
156
157
157
158
> Snapshot 1
158
159
159
160
Error {
160
- message: 'node-resolve: `customResolveOptions.readFile ` is no longer an option. If you need this, please open an issue.',
161
+ message: 'node-resolve: `customResolveOptions.pathFilter ` is no longer an option. If you need this, please open an issue.',
161
162
}
162
163
163
- ## throws error for removed customResolveOptions.realpath option
164
+ ## throws error for removed customResolveOptions.paths option
164
165
165
166
> Snapshot 1
166
167
167
168
Error {
168
- message: 'node-resolve: `customResolveOptions.realpath ` is no longer an option. If you need this, please open an issue.',
169
+ message: 'node-resolve: `customResolveOptions.paths ` is no longer an option. If you need this, please open an issue.',
169
170
}
170
171
171
- ## throws error if local id is not resolved
172
+ ## throws error for removed customResolveOptions.packageIterator option
172
173
173
174
> Snapshot 1
174
175
175
- 'Could not resolve \'./foo\' from unresolved-local.js'
176
+ Error {
177
+ message: 'node-resolve: `customResolveOptions.packageIterator` is no longer an option. If you need this, please open an issue.',
178
+ }
0 commit comments