Skip to content

Commit eaca849

Browse files
committed
Run yarn install for snapshot directories
1 parent 91062d7 commit eaca849

File tree

23 files changed

+270
-3716
lines changed

23 files changed

+270
-3716
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v2
1212
- run: npm install
13+
- run: yarn install
14+
working-directory: snapshots
1315
- run: npm run test
1416
lint:
1517
runs-on: ubuntu-latest

package-lock.json

Lines changed: 0 additions & 3610 deletions
This file was deleted.

snapshots/input/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

snapshots/input/multi-project/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "example",
2+
"name": "multi-project",
33
"version": "1.0.0",
44
"description": "Example TS/JS project",
55
"main": "src/main.js",

snapshots/input/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "example",
2+
"name": "react-example",
33
"version": "1.0.0",
44
"description": "Example TS/JS project",
55
"main": "src/main.js",

snapshots/input/syntax/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "example",
2+
"name": "syntax",
33
"version": "1.0.0",
44
"description": "Example TS/JS project",
55
"main": "src/main.js",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export function hello() {
2-
// ^^^^^ definition example 1.0.0 src/`example.ts`/hello().
2+
// ^^^^^ definition multi-project 1.0.0 src/`example.ts`/hello().
33
const a = 'a'
44
// ^ definition local 2
55
return { a }
6-
// ^ definition example 1.0.0 src/`example.ts`/a0:
6+
// ^ definition multi-project 1.0.0 src/`example.ts`/a0:
77
// ^ reference local 2
88
}
99

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { hello } from './example'
2-
// ^^^^^ reference example 1.0.0 src/`example.ts`/hello().
2+
// ^^^^^ reference multi-project 1.0.0 src/`example.ts`/hello().
33

44
hello().a
5-
//^^^^^ reference example 1.0.0 src/`example.ts`/hello().
6-
// ^ reference example 1.0.0 src/`example.ts`/a0:
5+
//^^^^^ reference multi-project 1.0.0 src/`example.ts`/hello().
6+
// ^ reference multi-project 1.0.0 src/`example.ts`/a0:
77

snapshots/output/react/src/LoaderInput.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33

44
/** Takes loading prop, input component as child */
55
interface Props {
6-
// ^^^^^ definition example 1.0.0 src/`LoaderInput.tsx`/Props#
6+
// ^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/Props#
77
loading: boolean
8-
// ^^^^^^^ definition example 1.0.0 src/`LoaderInput.tsx`/Props#loading.
8+
// ^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/Props#loading.
99
children: React.ReactNode
10-
// ^^^^^^^^ definition example 1.0.0 src/`LoaderInput.tsx`/Props#children.
10+
// ^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/Props#children.
1111
// ^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/
1212
// ^^^^^^^^^ reference local 0
1313
}
1414

1515
export const LoaderInput: React.FunctionComponent<Props> = ({
16-
// ^^^^^^^^^^^ definition example 1.0.0 src/`LoaderInput.tsx`/LoaderInput.
16+
// ^^^^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput.
1717
// ^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/
1818
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/FunctionComponent#
19-
// ^^^^^ reference example 1.0.0 src/`LoaderInput.tsx`/Props#
19+
// ^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#
2020
loading,
2121
// ^^^^^^^ reference local 4
2222
children,
@@ -36,17 +36,17 @@
3636
)
3737

3838
export const LoaderInput2: React.FunctionComponent<Props> = props => {
39-
// ^^^^^^^^^^^^ definition example 1.0.0 src/`LoaderInput.tsx`/LoaderInput2.
39+
// ^^^^^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput2.
4040
// ^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/
4141
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/FunctionComponent#
42-
// ^^^^^ reference example 1.0.0 src/`LoaderInput.tsx`/Props#
42+
// ^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#
4343
// ^^^^^ definition local 7
4444
return <LoaderInput loading={true} children={props.children} />
45-
// ^^^^^^^^^^^ reference example 1.0.0 src/`LoaderInput.tsx`/LoaderInput.
46-
// ^^^^^^^ reference example 1.0.0 src/`LoaderInput.tsx`/Props#loading.
47-
// ^^^^^^^^ reference example 1.0.0 src/`LoaderInput.tsx`/Props#children.
45+
// ^^^^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput.
46+
// ^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#loading.
47+
// ^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#children.
4848
// ^^^^^ reference local 7
49-
// ^^^^^^^^ reference example 1.0.0 src/`LoaderInput.tsx`/Props#children.
49+
// ^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#children.
5050
// ^^^^^^^^ reference local 11
5151
}
5252

snapshots/output/syntax/src/class.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
export class Class {
2-
// ^^^^^ reference example 1.0.0 src/`class.ts`/Class#
2+
// ^^^^^ reference syntax 1.0.0 src/`class.ts`/Class#
33
public classProperty: string
4-
// ^^^^^^^^^^^^^ definition example 1.0.0 src/`class.ts`/Class#classProperty.
4+
// ^^^^^^^^^^^^^ definition syntax 1.0.0 src/`class.ts`/Class#classProperty.
55
constructor(constructorParam: string) {
6-
// ^^^^^^^^^^^^^^^^ definition example 1.0.0 src/`class.ts`/Class#`<constructor>`().(constructorParam)
6+
// ^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`class.ts`/Class#`<constructor>`().(constructorParam)
77
this.classProperty = constructorParam
8-
// ^^^^^^^^^^^^^ reference example 1.0.0 src/`class.ts`/Class#classProperty.
9-
// ^^^^^^^^^^^^^^^^ reference example 1.0.0 src/`class.ts`/Class#`<constructor>`().(constructorParam)
8+
// ^^^^^^^^^^^^^ reference syntax 1.0.0 src/`class.ts`/Class#classProperty.
9+
// ^^^^^^^^^^^^^^^^ reference syntax 1.0.0 src/`class.ts`/Class#`<constructor>`().(constructorParam)
1010
}
1111
public method(methodParam: string): string {
12-
// ^^^^^^ definition example 1.0.0 src/`class.ts`/Class#method().
13-
// ^^^^^^^^^^^ definition example 1.0.0 src/`class.ts`/Class#method().(methodParam)
12+
// ^^^^^^ definition syntax 1.0.0 src/`class.ts`/Class#method().
13+
// ^^^^^^^^^^^ definition syntax 1.0.0 src/`class.ts`/Class#method().(methodParam)
1414
return this.privateMethod(methodParam)
15-
// ^^^^^^^^^^^^^ reference example 1.0.0 src/`class.ts`/Class#privateMethod().
16-
// ^^^^^^^^^^^ reference example 1.0.0 src/`class.ts`/Class#method().(methodParam)
15+
// ^^^^^^^^^^^^^ reference syntax 1.0.0 src/`class.ts`/Class#privateMethod().
16+
// ^^^^^^^^^^^ reference syntax 1.0.0 src/`class.ts`/Class#method().(methodParam)
1717
}
1818
public static staticMethod(methodParam: string): string {
19-
// ^^^^^^^^^^^^ definition example 1.0.0 src/`class.ts`/Class#staticMethod().
20-
// ^^^^^^^^^^^ definition example 1.0.0 src/`class.ts`/Class#staticMethod().(methodParam)
19+
// ^^^^^^^^^^^^ definition syntax 1.0.0 src/`class.ts`/Class#staticMethod().
20+
// ^^^^^^^^^^^ definition syntax 1.0.0 src/`class.ts`/Class#staticMethod().(methodParam)
2121
return methodParam
22-
// ^^^^^^^^^^^ reference example 1.0.0 src/`class.ts`/Class#staticMethod().(methodParam)
22+
// ^^^^^^^^^^^ reference syntax 1.0.0 src/`class.ts`/Class#staticMethod().(methodParam)
2323
}
2424
private privateMethod(methodParam: string): string {
25-
// ^^^^^^^^^^^^^ definition example 1.0.0 src/`class.ts`/Class#privateMethod().
26-
// ^^^^^^^^^^^ definition example 1.0.0 src/`class.ts`/Class#privateMethod().(methodParam)
25+
// ^^^^^^^^^^^^^ definition syntax 1.0.0 src/`class.ts`/Class#privateMethod().
26+
// ^^^^^^^^^^^ definition syntax 1.0.0 src/`class.ts`/Class#privateMethod().(methodParam)
2727
return methodParam
28-
// ^^^^^^^^^^^ reference example 1.0.0 src/`class.ts`/Class#privateMethod().(methodParam)
28+
// ^^^^^^^^^^^ reference syntax 1.0.0 src/`class.ts`/Class#privateMethod().(methodParam)
2929
}
3030
}
3131

3232
export function newClass(param: string): string {
33-
// ^^^^^^^^ definition example 1.0.0 src/`class.ts`/newClass().
34-
// ^^^^^ definition example 1.0.0 src/`class.ts`/newClass().(param)
33+
// ^^^^^^^^ definition syntax 1.0.0 src/`class.ts`/newClass().
34+
// ^^^^^ definition syntax 1.0.0 src/`class.ts`/newClass().(param)
3535
const instance = new Class(param).classProperty
3636
// ^^^^^^^^ definition local 2
37-
// ^^^^^ reference example 1.0.0 src/`class.ts`/Class#
38-
// ^^^^^ reference example 1.0.0 src/`class.ts`/newClass().(param)
39-
// ^^^^^^^^^^^^^ reference example 1.0.0 src/`class.ts`/Class#classProperty.
37+
// ^^^^^ reference syntax 1.0.0 src/`class.ts`/Class#
38+
// ^^^^^ reference syntax 1.0.0 src/`class.ts`/newClass().(param)
39+
// ^^^^^^^^^^^^^ reference syntax 1.0.0 src/`class.ts`/Class#classProperty.
4040
const instance2 = Class.staticMethod(param)
4141
// ^^^^^^^^^ definition local 5
42-
// ^^^^^ reference example 1.0.0 src/`class.ts`/Class#
43-
// ^^^^^^^^^^^^ reference example 1.0.0 src/`class.ts`/Class#staticMethod().
44-
// ^^^^^ reference example 1.0.0 src/`class.ts`/newClass().(param)
42+
// ^^^^^ reference syntax 1.0.0 src/`class.ts`/Class#
43+
// ^^^^^^^^^^^^ reference syntax 1.0.0 src/`class.ts`/Class#staticMethod().
44+
// ^^^^^ reference syntax 1.0.0 src/`class.ts`/newClass().(param)
4545
return instance + instance2
4646
// ^^^^^^^^ reference local 2
4747
// ^^^^^^^^^ reference local 5

0 commit comments

Comments
 (0)