Skip to content

Commit a443e2c

Browse files
committed
Sort snapshot files
1 parent 7fbd75d commit a443e2c

2 files changed

Lines changed: 27 additions & 27 deletions

File tree

tests/helpers/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export async function filesMatching(glob: string, dirPath: string) {
111111
try {
112112
let files = await globby(glob, { cwd: dirPath });
113113

114-
return files;
114+
return files.sort();
115115
} catch (e) {
116116
console.error('error', e);
117117

tests/smoke-tests/--typescript.test.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ for (let packageManager of SUPPORTED_PACKAGE_MANAGERS) {
9696
`ensure we don't pollute the src dir with declarations and emit the js and .d.ts to the correct folders -- this should be the same as the input files (no change from the fixture + default files)`,
9797
).toMatchInlineSnapshot(`
9898
[
99+
"src/components/another-gts.gts",
100+
"src/components/template-import.gts",
99101
"src/index.ts",
100102
"src/lint-test-gts.gts",
101103
"src/lint-test-ts.ts",
102-
"src/template-registry.ts",
103-
"src/components/another-gts.gts",
104-
"src/components/template-import.gts",
105104
"src/services/example.ts",
105+
"src/template-registry.ts",
106106
]
107107
`);
108108

@@ -111,37 +111,37 @@ for (let packageManager of SUPPORTED_PACKAGE_MANAGERS) {
111111
`ensure we emit the correct files out of the box to the correct folders`,
112112
).toMatchInlineSnapshot(`
113113
[
114-
"dist/index.js",
115-
"dist/index.js.map",
116-
"dist/lint-test-gts.js",
117-
"dist/lint-test-gts.js.map",
118-
"dist/lint-test-ts.js",
119-
"dist/lint-test-ts.js.map",
120-
"dist/template-registry.js",
121-
"dist/template-registry.js.map",
122-
"dist/components/another-gts.js",
123-
"dist/components/another-gts.js.map",
124-
"dist/components/template-import.js",
125-
"dist/components/template-import.js.map",
126-
"dist/services/example.js",
127-
"dist/services/example.js.map",
128-
"dist/_app_/components/another-gts.js",
129-
"dist/_app_/components/template-import.js",
130-
"dist/_app_/services/example.js",
114+
"declarations/components/another-gts.d.ts",
115+
"declarations/components/another-gts.d.ts.map",
116+
"declarations/components/template-import.d.ts",
117+
"declarations/components/template-import.d.ts.map",
131118
"declarations/index.d.ts",
132119
"declarations/index.d.ts.map",
133120
"declarations/lint-test-gts.d.ts",
134121
"declarations/lint-test-gts.d.ts.map",
135122
"declarations/lint-test-ts.d.ts",
136123
"declarations/lint-test-ts.d.ts.map",
137-
"declarations/template-registry.d.ts",
138-
"declarations/template-registry.d.ts.map",
139-
"declarations/components/another-gts.d.ts",
140-
"declarations/components/another-gts.d.ts.map",
141-
"declarations/components/template-import.d.ts",
142-
"declarations/components/template-import.d.ts.map",
143124
"declarations/services/example.d.ts",
144125
"declarations/services/example.d.ts.map",
126+
"declarations/template-registry.d.ts",
127+
"declarations/template-registry.d.ts.map",
128+
"dist/_app_/components/another-gts.js",
129+
"dist/_app_/components/template-import.js",
130+
"dist/_app_/services/example.js",
131+
"dist/components/another-gts.js",
132+
"dist/components/another-gts.js.map",
133+
"dist/components/template-import.js",
134+
"dist/components/template-import.js.map",
135+
"dist/index.js",
136+
"dist/index.js.map",
137+
"dist/lint-test-gts.js",
138+
"dist/lint-test-gts.js.map",
139+
"dist/lint-test-ts.js",
140+
"dist/lint-test-ts.js.map",
141+
"dist/services/example.js",
142+
"dist/services/example.js.map",
143+
"dist/template-registry.js",
144+
"dist/template-registry.js.map",
145145
]
146146
`);
147147
});

0 commit comments

Comments
 (0)