You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-27Lines changed: 3 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,29 +22,15 @@ Find me on the [Ember Discord](https://discord.com/invite/emberjs) at `hm_krysta
22
22
1. Install dependencies:
23
23
24
24
```bash
25
-
pnpm install --recursive
25
+
pnpm install
26
26
```
27
27
28
28
1. Run the tests to ensure your development environment is working properly:
29
29
30
-
Watch mode:
31
-
32
30
```bash
33
31
pnpm test
34
32
```
35
33
36
-
Single run:
37
-
38
-
```bash
39
-
pnpm test:run
40
-
```
41
-
42
-
Watch mode with a cute UI in the browser:
43
-
44
-
```bash
45
-
pnpm test:ui
46
-
```
47
-
48
34
## Pull Requests
49
35
50
36
We love pull requests. Here's a quick guide:
@@ -79,25 +65,15 @@ We love pull requests. Here's a quick guide:
79
65
80
66
NOTE: Partially copied from https://github.com/emberjs/ember.js/blob/master/CONTRIBUTING.md
81
67
82
-
## Examples
83
-
84
-
1. Follow the [Development](#development) guide above to set up your environment.
85
-
86
-
1. Edit `example.gjs` or `example.gts` to make the ugliest component file you can think of.
87
-
88
-
1. Run `pnpm run example` or `pnpm run example-ts` to prettify your ugly file. 😍 (Note that `run example` will also build the project, so it may take a second.)
89
-
90
-
1. Don't commit your changes to the example files.
91
-
92
68
## Tests
93
69
94
-
Most of the tests are generated by formatting example files from the `cases` directory and comparing the output to [Vitest snapshots](https://vitest.dev/guide/snapshot.html).
70
+
Most of the tests are generated by formatting example files from the `tests-vitest/cases` directory and comparing the output to [Vitest snapshots](https://vitest.dev/guide/snapshot.html).
95
71
96
72
To add a new case, add your case file(s) in the appropriate place(s) here: https://github.com/gitKrystan/prettier-plugin-ember-template-tag/tree/main/tests/cases
97
73
98
74
New cases will be tested against a variety of configs. If you also want to test against for "ambiguous expressions" issues as described [here](https://github.com/gitKrystan/prettier-plugin-ember-template-tag/issues/1), you can include the comment `/*AMBIGUOUS*/` anywhere in your test cases and it will be replaced by the ambiguous cases listed [here](https://github.com/gitKrystan/prettier-plugin-ember-template-tag/tree/main/tests/helpers/ambiguous.ts) in a variety of generated tests. If you find a new ambiguous case, add it to that list.
99
75
100
-
Once you make your changes and/or add new cases `pnpm test:run -u` to update the snapshots then carefully inspect the results to ensure the output matches your expectations.
76
+
Once you make your changes and/or add new cases `pnpm test:vitest -u` to update the snapshots then carefully inspect the results to ensure the output matches your expectations.
0 commit comments