2022-09-22 15:56:32 +08:00
|
|
|
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);
|
2022-11-22 16:43:03 +08:00
|
|
|
});
|
2022-09-22 15:56:32 +08:00
|
|
|
});
|