Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixtures/eresolve-explanations.js')
-rw-r--r--test/fixtures/eresolve-explanations.js253
1 files changed, 218 insertions, 35 deletions
diff --git a/test/fixtures/eresolve-explanations.js b/test/fixtures/eresolve-explanations.js
index b6ccac7d3..c34424c7f 100644
--- a/test/fixtures/eresolve-explanations.js
+++ b/test/fixtures/eresolve-explanations.js
@@ -35,43 +35,45 @@ module.exports = {
],
},
peerConflict: {
- name: '@isaacs/peer-dep-cycle-c',
- version: '1.0.0',
- whileInstalling: { name: '@isaacs/peer-dep-cycle-a', version: '1.0.0' },
- location: 'node_modules/@isaacs/peer-dep-cycle-c',
- dependents: [
- {
- type: 'peer',
- name: '@isaacs/peer-dep-cycle-c',
- spec: '1',
- from: {
- name: '@isaacs/peer-dep-cycle-b',
- version: '1.0.0',
- whileInstalling: { name: '@isaacs/peer-dep-cycle-a', version: '1.0.0' },
- location: 'node_modules/@isaacs/peer-dep-cycle-b',
- dependents: [
- {
- type: 'peer',
- name: '@isaacs/peer-dep-cycle-b',
- spec: '1',
- from: {
- name: '@isaacs/peer-dep-cycle-a',
- version: '1.0.0',
- location: 'node_modules/@isaacs/peer-dep-cycle-a',
- dependents: [
- {
- type: 'prod',
- name: '@isaacs/peer-dep-cycle-a',
- spec: '1.x',
- from: { location: '/some/project' },
- },
- ],
+ peer: {
+ name: '@isaacs/peer-dep-cycle-c',
+ version: '1.0.0',
+ whileInstalling: { name: '@isaacs/peer-dep-cycle-a', version: '1.0.0' },
+ location: 'node_modules/@isaacs/peer-dep-cycle-c',
+ dependents: [
+ {
+ type: 'peer',
+ name: '@isaacs/peer-dep-cycle-c',
+ spec: '1',
+ from: {
+ name: '@isaacs/peer-dep-cycle-b',
+ version: '1.0.0',
+ whileInstalling: { name: '@isaacs/peer-dep-cycle-a', version: '1.0.0' },
+ location: 'node_modules/@isaacs/peer-dep-cycle-b',
+ dependents: [
+ {
+ type: 'peer',
+ name: '@isaacs/peer-dep-cycle-b',
+ spec: '1',
+ from: {
+ name: '@isaacs/peer-dep-cycle-a',
+ version: '1.0.0',
+ location: 'node_modules/@isaacs/peer-dep-cycle-a',
+ dependents: [
+ {
+ type: 'prod',
+ name: '@isaacs/peer-dep-cycle-a',
+ spec: '1.x',
+ from: { location: '/some/project' },
+ },
+ ],
+ },
},
- },
- ],
+ ],
+ },
},
- },
- ],
+ ],
+ },
},
strictPeerDeps: true,
},
@@ -373,4 +375,185 @@ module.exports = {
strictPeerDeps: false,
force: false,
},
+
+ 'eslint-plugin case': {
+ code: 'ERESOLVE',
+ edge: {
+ type: 'dev',
+ name: 'eslint-plugin-eslint-plugin',
+ spec: '^3.1.0',
+ error: 'MISSING',
+ from: {
+ location: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react',
+ },
+ },
+ dep: {
+ name: 'eslint-plugin-eslint-plugin',
+ version: '3.5.1',
+ whileInstalling: {
+ name: 'eslint-plugin-react',
+ version: '7.24.0',
+ path: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react',
+ },
+ location: 'node_modules/eslint-plugin-eslint-plugin',
+ isWorkspace: false,
+ dependents: [
+ {
+ type: 'dev',
+ name: 'eslint-plugin-eslint-plugin',
+ spec: '^3.1.0',
+ error: 'MISSING',
+ from: {
+ location: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react',
+ },
+ },
+ ],
+ },
+ current: null,
+ peerConflict: {
+ current: {
+ name: 'eslint',
+ version: '6.8.0',
+ location: 'node_modules/eslint',
+ isWorkspace: false,
+ dependents: [
+ {
+ type: 'dev',
+ name: 'eslint',
+ spec: '^3 || ^4 || ^5 || ^6 || ^7',
+ from: {
+ location: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react',
+ },
+ },
+ {
+ type: 'peer',
+ name: 'eslint',
+ spec: '^5.0.0 || ^6.0.0',
+ from: {
+ name: '@typescript-eslint/parser',
+ version: '2.34.0',
+ location: 'node_modules/@typescript-eslint/parser',
+ isWorkspace: false,
+ dependents: [
+ {
+ type: 'dev',
+ name: '@typescript-eslint/parser',
+ spec: '^2.34.0',
+ from: {
+ location: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react',
+ },
+ },
+ ],
+ },
+ },
+ {
+ type: 'peer',
+ name: 'eslint',
+ spec: '^5.16.0 || ^6.8.0 || ^7.2.0',
+ from: {
+ name: 'eslint-config-airbnb-base',
+ version: '14.2.1',
+ location: 'node_modules/eslint-config-airbnb-base',
+ isWorkspace: false,
+ dependents: [
+ {
+ type: 'dev',
+ name: 'eslint-config-airbnb-base',
+ spec: '^14.2.1',
+ from: {
+ location: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react',
+ },
+ },
+ ],
+ },
+ },
+ {
+ type: 'peer',
+ name: 'eslint',
+ spec: '^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0',
+ from: {
+ name: 'eslint-plugin-import',
+ version: '2.23.4',
+ location: 'node_modules/eslint-plugin-import',
+ isWorkspace: false,
+ dependents: [
+ {
+ type: 'dev',
+ name: 'eslint-plugin-import',
+ spec: '^2.23.4',
+ from: {
+ location: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react',
+ },
+ },
+ {
+ type: 'peer',
+ name: 'eslint-plugin-import',
+ spec: '^2.22.1',
+ from: {
+ name: 'eslint-config-airbnb-base',
+ version: '14.2.1',
+ location: 'node_modules/eslint-config-airbnb-base',
+ isWorkspace: false,
+ dependents: [
+ {
+ type: 'dev',
+ name: 'eslint-config-airbnb-base',
+ spec: '^14.2.1',
+ from: {
+ location: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react',
+ },
+ },
+ ],
+ },
+ },
+ ],
+ },
+ },
+ ],
+ },
+ peer: {
+ name: 'eslint',
+ version: '7.31.0',
+ whileInstalling: {
+ name: 'eslint-plugin-react',
+ version: '7.24.0',
+ path: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react',
+ },
+ location: 'node_modules/eslint',
+ isWorkspace: false,
+ dependents: [
+ {
+ type: 'peer',
+ name: 'eslint',
+ spec: '^7.0.0',
+ from: {
+ name: 'eslint-plugin-eslint-plugin',
+ version: '3.5.1',
+ whileInstalling: {
+ name: 'eslint-plugin-react',
+ version: '7.24.0',
+ path: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react',
+ },
+ location: 'node_modules/eslint-plugin-eslint-plugin',
+ isWorkspace: false,
+ dependents: [
+ {
+ type: 'dev',
+ name: 'eslint-plugin-eslint-plugin',
+ spec: '^3.1.0',
+ error: 'MISSING',
+ from: {
+ location: '/Users/isaacs/dev/npm/arborist/fixtures/eslint-plugin-react',
+ },
+ },
+ ],
+ },
+ },
+ ],
+ },
+ },
+ strictPeerDeps: false,
+ force: false,
+ isMine: true,
+ },
}