Commit ccc4e0b
committed
Fix PluginPackagerTest for removed isCommonGitIgnoredPath method
Update two failing tests that called the removed isCommonGitIgnoredPath()
method, which was eliminated in commit 6253871 when the packager was
refactored to use .gitattributes export-ignore patterns as the single
source of truth.
Changes:
- testBuiltAssetsNotIgnored: Now uses getExportIgnorePatterns() and
shouldExcludePath() to verify assets/dist/ is included in packages
- testVendorDirectoriesIgnored: Now uses getExportIgnorePatterns() and
shouldExcludePath() to verify vendor/ is excluded from packages
- Updated section comment to reflect the new .gitattributes approach
The tests verify the same critical behaviors as before:
- Built assets (assets/dist/) must NOT be excluded from packages
- Dev dependencies (vendor/) must be excluded from packages
- Similar directory names (vendor_custom/) must not be incorrectly matched1 parent 0d837f6 commit ccc4e0b
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | | - | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
154 | | - | |
| 156 | + | |
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
159 | | - | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| |||
0 commit comments