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
{{ message }}
Repository navigation
Commit 73b29be
Browse filesBrowse the repository at this point in the historyBrowse files
test: ask for the sandbox import only in CI for the engine's own repository
The check that every test file imports tests/engine-sandbox.ts first was
also asked on a person's machine, wherever origin pointed at VapiAI/gitops.
A repository cloned straight from the engine's keeps that origin, so a test
of its owner's under tests/ made one engine test fail in npm test. Before
the sandbox existed it passed.
The check is now asked only where GITHUB_REPOSITORY is VapiAI/gitops, which
is CI for the engine's own repository. A contributor who leaves the import
out finds out on the pull request. GITHUB_REPOSITORY=VapiAI/gitops npm test
asks it on a machine.
Tests and docs only.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
test("in the engine's own repository, every test file imports the sandbox first",{
157
-
skip: engineRepository()
146
+
test("in CI for the engine's own repository, every test file imports the sandbox first",{
147
+
skip: engineRepositoryCi()
158
148
? false
159
-
: "not the engine's own repository: a test file without the import is this repository's own",
149
+
: "not CI for the engine's own repository: a test file without the import is this repository's own",
160
150
},()=>{
161
151
constother=[
162
152
...testFiles(join(REPO,"tests")).other,
@@ -167,7 +157,7 @@ test("in the engine's own repository, every test file imports the sandbox first"
167
157
assert.deepEqual(
168
158
other,
169
159
[],
170
-
`Every engine test file starts with ${SANDBOX} (${SANDBOX_FROM_FOLDER} under tests/repository/) and these don't: ${other.join(", ")}. This is asked because origin is VapiAI/gitops; in a repository of your own, with its own origin, a test of your own is left alone.`,
160
+
`Every engine test file starts with ${SANDBOX} (${SANDBOX_FROM_FOLDER} under tests/repository/) and these don't: ${other.join(", ")}. This is asked because GITHUB_REPOSITORY is VapiAI/gitops; anywhere else a test file without the import is left alone.`,
0 commit comments