Enable ESLint no-require-imports rule

This commit is contained in:
James Brunton
2025-09-03 09:15:10 +01:00
parent 65e331ae26
commit e1e57f2cfd
5 changed files with 27 additions and 26 deletions

View File

@@ -12,8 +12,8 @@ import {
conversionDiscovery,
type ConversionEndpoint
} from '../helpers/conversionEndpointDiscovery';
import * as path from 'path';
import * as fs from 'fs';
import path from 'path';
import fs from 'fs';
// Test configuration
const BASE_URL = process.env.BASE_URL || 'http://localhost:5173';
@@ -239,7 +239,6 @@ async function testConversion(page: Page, conversion: ConversionEndpoint) {
// Save and verify file is not empty
const path = await download.path();
if (path) {
const fs = require('fs');
const stats = fs.statSync(path);
expect(stats.size).toBeGreaterThan(0);