ice/tests/integration/disable-data-loader.test.ts

13 lines
417 B
TypeScript
Raw Permalink Normal View History

import * as path from 'path';
import * as fs from 'fs';
import { expect, test, describe } from 'vitest';
import { buildFixture } from '../utils/build';
const example = 'disable-data-loader';
describe(`build ${example}`, () => {
test('open /', async () => {
await buildFixture(example);
expect(fs.existsSync(path.join(__dirname, `../../examples/${example}/build/js/data-loader.js`))).toBe(false);
});
});