|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
| 3 | +exports[`npmrcUtilities trimNpmrcFileLines With npm-incompatible properties filtering does not filter when filterNpmIncompatibleProperties is false 1`] = ` |
| 4 | +Array [ |
| 5 | + "registry=https://registry.npmjs.org/", |
| 6 | + "email=test@example.com", |
| 7 | + "hoist=false", |
| 8 | +] |
| 9 | +`; |
| 10 | + |
| 11 | +exports[`npmrcUtilities trimNpmrcFileLines With npm-incompatible properties filtering filters out deprecated npm properties 1`] = ` |
| 12 | +Array [ |
| 13 | + "registry=https://registry.npmjs.org/", |
| 14 | + "; MISSING ENVIRONMENT VARIABLE: email=test@example.com", |
| 15 | + "; MISSING ENVIRONMENT VARIABLE: publish-branch=main", |
| 16 | +] |
| 17 | +`; |
| 18 | + |
| 19 | +exports[`npmrcUtilities trimNpmrcFileLines With npm-incompatible properties filtering filters out pnpm-specific hoisting properties 1`] = ` |
| 20 | +Array [ |
| 21 | + "registry=https://registry.npmjs.org/", |
| 22 | + "; MISSING ENVIRONMENT VARIABLE: hoist=false", |
| 23 | + "; MISSING ENVIRONMENT VARIABLE: hoist-pattern[]=*eslint*", |
| 24 | + "; MISSING ENVIRONMENT VARIABLE: public-hoist-pattern[]=", |
| 25 | + "; MISSING ENVIRONMENT VARIABLE: shamefully-hoist=true", |
| 26 | + "always-auth=false", |
| 27 | +] |
| 28 | +`; |
| 29 | + |
| 30 | +exports[`npmrcUtilities trimNpmrcFileLines With npm-incompatible properties filtering preserves registry-scoped auth tokens 1`] = ` |
| 31 | +Array [ |
| 32 | + "registry=https://registry.npmjs.org/", |
| 33 | + "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}", |
| 34 | + "//my-registry.com/:_authToken=\${MY_TOKEN}", |
| 35 | + "; MISSING ENVIRONMENT VARIABLE: email=test@example.com", |
| 36 | +] |
| 37 | +`; |
| 38 | + |
| 39 | +exports[`npmrcUtilities trimNpmrcFileLines With npm-incompatible properties filtering preserves registry-scoped configurations 1`] = ` |
| 40 | +Array [ |
| 41 | + "registry=https://registry.npmjs.org/", |
| 42 | + "//registry.npmjs.org/:always-auth=true", |
| 43 | + "//my-registry.com/:_authToken=\${MY_TOKEN}", |
| 44 | + "; MISSING ENVIRONMENT VARIABLE: hoist=false", |
| 45 | +] |
| 46 | +`; |
| 47 | + |
| 48 | +exports[`npmrcUtilities trimNpmrcFileLines With npm-incompatible properties filtering preserves standard npm properties 1`] = ` |
| 49 | +Array [ |
| 50 | + "registry=https://registry.npmjs.org/", |
| 51 | + "always-auth=false", |
| 52 | + "strict-ssl=true", |
| 53 | + "save-exact=true", |
| 54 | + "package-lock=true", |
| 55 | + "; MISSING ENVIRONMENT VARIABLE: hoist=false", |
| 56 | + "; MISSING ENVIRONMENT VARIABLE: email=test@example.com", |
| 57 | +] |
| 58 | +`; |
| 59 | + |
3 | 60 | exports[`npmrcUtilities trimNpmrcFileLines With support for env var fallback syntax supports a a variable without a fallback 1`] = ` |
4 | 61 | Array [ |
5 | 62 | "; MISSING ENVIRONMENT VARIABLE: var1=\${foo}", |
|
0 commit comments