summaryrefslogtreecommitdiff
path: root/spec/frontend/packages/details/components/__snapshots__/npm_installation_spec.js.snap
blob: b616751f75fd25c64e31725f501cb7375d08fc42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`NpmInstallation renders all the messages 1`] = `
<div>
  <h3
    class="gl-font-lg"
  >
    Installation
  </h3>
   
  <code-instruction-stub
    copytext="Copy npm command"
    instruction="npm i @Test/package"
    label="npm command"
    trackingaction="copy_npm_install_command"
    trackinglabel="code_instruction"
  />
   
  <code-instruction-stub
    copytext="Copy yarn command"
    instruction="yarn add @Test/package"
    label="yarn command"
    trackingaction="copy_yarn_install_command"
    trackinglabel="code_instruction"
  />
   
  <h3
    class="gl-font-lg"
  >
    Registry setup
  </h3>
   
  <code-instruction-stub
    copytext="Copy npm setup command"
    instruction="echo @Test:registry=undefined/ >> .npmrc"
    label="npm command"
    trackingaction="copy_npm_setup_command"
    trackinglabel="code_instruction"
  />
   
  <code-instruction-stub
    copytext="Copy yarn setup command"
    instruction="echo \\\\\\"@Test:registry\\\\\\" \\\\\\"undefined/\\\\\\" >> .yarnrc"
    label="yarn command"
    trackingaction="copy_yarn_setup_command"
    trackinglabel="code_instruction"
  />
   
  <gl-sprintf-stub
    message="You may also need to setup authentication using an auth token. %{linkStart}See the documentation%{linkEnd} to find out more."
  />
</div>
`;