fix: update module import statements from require to import

This commit is contained in:
Marius Begby committed 2023-08-26 22:26:40 +02:00
1 parent c3891f9c2d
commit 9125e4a5da
40 files changed
+51 -50

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
const path = require('node:path');
const fs = require('node:fs');
import path from 'node:path';
import fs from 'node:fs';
const cookies = require(path.resolve('./cookies.json'));
try {
+1 -1
View File
@@ -1,4 +1,4 @@
const https = require('node:https');
import https from 'node:https';
exports.postBotStats = async ({ client, executionId }) => {
const logger = require('../../services/logger').child({
+1 -1
View File
@@ -1,4 +1,4 @@
const config = require('config');
import config from 'config';
const loadTestOptions = config.get('loadTestOptions');
exports.startLoadTest = async ({ client, executionId }) => {