From d06888f06795cc2fcc1b73542b31a4ec019b88c0 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Tue, 16 Feb 2021 14:07:39 +0100 Subject: [PATCH] Update ci.test.js --- tests/ci.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/ci.test.js b/tests/ci.test.js index 4c0bb280..fab7f1db 100644 --- a/tests/ci.test.js +++ b/tests/ci.test.js @@ -2,6 +2,13 @@ const path = require("path") const git = require("simple-git")(path.join(__dirname, "..")) +//Setup + beforeAll(async done => { + //Fetch master + await git.fetch(["origin", "master"]) + done() + }) + //Check generated files editions const diff = async () => (await git.diff("origin/master...", ["--name-status"])).split("\n").map(x => x.trim()).filter(x => /^M\s+/.test(x)).map(x => x.replace(/^M\s+/, "")) describe('Auto-generated files were not modified (use "git checkout @ -- file" if needed)', () => void test.each([