const test = require(process.env.TEST_AVA_REQUIRE_FROM); // This fixture is copied to a temporary directory, so require AVA through its configured path. test('foo', t => { if (process.env.TEMPLATE) { t.snapshot({foo: 'one'}); t.snapshot({foo: 'two'}); } else { t.snapshot.skip({one: 'something new'}); t.snapshot({two: 'something new'}); } });