Skip to content

Commit a0dc3c0

Browse files
committed
Move assets from tests folder into top level
1 parent 9160267 commit a0dc3c0

File tree

10 files changed

+15
-13
lines changed

10 files changed

+15
-13
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export default defineConfig([
1010
"bin/guida.min.js",
1111
"lib/guida.js",
1212
"lib/guida.min.js",
13+
"elm-stuff",
14+
"guida-stuff",
1315
]),
1416
{ files: ["**/*.{js,mjs,cjs}"] },
1517
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"test:eslint": "eslint",
1717
"test:elm-format-validate": "elm-format . --validate",
1818
"test:jest": "jest",
19-
"test:elm": "elm-test tests/Parse",
20-
"test:elm-review": "elm-review src tests/Parse",
19+
"test:elm": "elm-test",
20+
"test:elm-review": "elm-review",
2121
"elm-format": "elm-format . --yes",
2222
"prepack": "npm run build"
2323
},

tests/backwards-compatibility.test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ describe("backwards compatibility", () => {
120120
try {
121121
childProcess.execSync(
122122
`elm make src/Invalid.elm --report=json &> ${elmOutput}`,
123-
{ cwd: path.join(__dirname, "assets", "some-application") }
123+
{ cwd: path.join(__dirname, "..", "assets", "some-application") }
124124
);
125125
} catch (_) { }
126126

127127
try {
128128
childProcess.execSync(
129-
`../../../bin/index.js make src/Invalid.elm --report=json &> ${guidaOutput}`,
130-
{ cwd: path.join(__dirname, "assets", "some-application") }
129+
`../../bin/index.js make src/Invalid.elm --report=json &> ${guidaOutput}`,
130+
{ cwd: path.join(__dirname, "..", "assets", "some-application") }
131131
);
132132
} catch (_) { }
133133

@@ -141,16 +141,16 @@ describe("backwards compatibility", () => {
141141
try {
142142
childProcess.execSync(
143143
`elm make --docs=${elmOutput}`,
144-
{ cwd: path.join(__dirname, "assets", "some-package") }
144+
{ cwd: path.join(__dirname, "..", "assets", "some-package") }
145145
);
146146
} catch (e) {
147147
console.error(e);
148148
}
149149

150150
try {
151151
childProcess.execSync(
152-
`../../../bin/index.js make --docs=${guidaOutput}`,
153-
{ cwd: path.join(__dirname, "assets", "some-package") }
152+
`../../bin/index.js make --docs=${guidaOutput}`,
153+
{ cwd: path.join(__dirname, "..", "assets", "some-package") }
154154
);
155155
} catch (e) {
156156
console.error(e);
@@ -167,14 +167,14 @@ describe("backwards compatibility", () => {
167167
try {
168168
childProcess.execSync(
169169
`elm make src/ElmTupleN.elm --report=json &> ${elmOutput}`,
170-
{ cwd: path.join(__dirname, "assets", "some-application") }
170+
{ cwd: path.join(__dirname, "..", "assets", "some-application") }
171171
);
172172
} catch (_) { }
173173

174174
try {
175175
childProcess.execSync(
176-
`../../../bin/index.js make src/ElmTupleN.elm --report=json &> ${guidaOutput}`,
177-
{ cwd: path.join(__dirname, "assets", "some-application") }
176+
`../../bin/index.js make src/ElmTupleN.elm --report=json &> ${guidaOutput}`,
177+
{ cwd: path.join(__dirname, "..", "assets", "some-application") }
178178
);
179179
} catch (_) { }
180180

tests/tuples.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ describe("tuples", () => {
55
test("allows 3+ tuples", () => {
66
expect(() => {
77
childProcess.execSync(
8-
`../../../bin/index.js make src/GuidaTupleN.guida`,
9-
{ cwd: path.join(__dirname, "assets", "some-application") }
8+
`../../bin/index.js make src/GuidaTupleN.guida`,
9+
{ cwd: path.join(__dirname, "..", "assets", "some-application") }
1010
);
1111
}).not.toThrow();
1212
});

0 commit comments

Comments
 (0)