const { runBuildCommand, clearBuildOutput } = require("../helpers");

beforeEach(async () => {
  await clearBuildOutput(__dirname);
});

afterAll(async () => {
  await clearBuildOutput(__dirname);
});

/**
 * Test that the synth command ran successfully
 */
test("config-invalid", async () => {
  const result = await runBuildCommand(__dirname);

  expect(result).toMatch(
    /There was a problem reading the sst.json config file/
  );
});
