summaryrefslogtreecommitdiff
path: root/packages/astro/test/astro-external-files.nodetest.js
blob: 5db44bc21a55f7abba3f132258de4617d543fad4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import assert from 'node:assert/strict';
import { describe, before, it } from 'node:test';
import { loadFixture } from './test-utils.js';

describe('External file references', () => {
	let fixture;

	before(async () => {
		fixture = await loadFixture({ root: './fixtures/astro-external-files/' });
		await fixture.build();
	});

	it('Build with externeal reference', async () => {
		const html = await fixture.readFile('/index.html');
		assert.equal(html.includes('<script src="/external-file.js"'), true);
	});
});

it.skip('is skipped', () => {});