From fb2d86ebd4fc13694e6963cb487210000d187985 Mon Sep 17 00:00:00 2001 From: Andrew Rumble Date: Tue, 7 Oct 2025 11:51:55 +0100 Subject: [PATCH] Rename files GitOrigin-RevId: 73ecf16aa08d0677661249f09d7be15214d15982 --- services/web/app.mjs | 6 +-- .../Analytics/AnalyticsController.mjs | 2 +- .../Project/ProjectListController.mjs | 2 +- .../Subscription/SubscriptionController.mjs | 4 +- .../Subscription/TeamInvitesController.mjs | 2 +- ...ParserWrapper.js => BodyParserWrapper.mjs} | 0 .../src/infrastructure/{CSP.js => CSP.mjs} | 0 .../{CookieMetrics.js => CookieMetrics.mjs} | 0 .../src/infrastructure/{Csrf.js => Csrf.mjs} | 0 ...SessionStore.js => CustomSessionStore.mjs} | 0 .../{ExpressLocals.js => ExpressLocals.mjs} | 0 .../{FrontEndUser.js => FrontEndUser.mjs} | 0 .../{GeoIpLookup.js => GeoIpLookup.mjs} | 0 .../{JsonWebToken.js => JsonWebToken.mjs} | 0 .../src/infrastructure/{Keys.js => Keys.mjs} | 0 ...erSerializers.js => LoggerSerializers.mjs} | 0 .../{QueueWorkers.js => QueueWorkers.mjs} | 0 ...RedirectManager.js => RedirectManager.mjs} | 0 .../web/app/src/infrastructure/Server.mjs | 18 +++---- ...ware.js => SessionAutostartMiddleware.mjs} | 0 ...teAdminHandler.js => SiteAdminHandler.mjs} | 0 .../{Translations.js => Translations.mjs} | 0 ...re.js => UnsupportedBrowserMiddleware.mjs} | 0 services/web/app/src/router.mjs | 2 +- .../test/acceptance/src/helpers/InitApp.mjs | 2 +- .../Analytics/AnalyticsController.test.mjs | 2 +- ...js => SessionAutostartMiddleware.test.mjs} | 47 +++++++++---------- .../{CsrfTests.js => Csrf.test.mjs} | 0 ...eoIpLookupTest.js => GeoIpLookup.test.mjs} | 0 ...slationsTests.js => Translations.test.mjs} | 0 services/web/webpack.config.js | 2 +- 31 files changed, 44 insertions(+), 45 deletions(-) rename services/web/app/src/infrastructure/{BodyParserWrapper.js => BodyParserWrapper.mjs} (100%) rename services/web/app/src/infrastructure/{CSP.js => CSP.mjs} (100%) rename services/web/app/src/infrastructure/{CookieMetrics.js => CookieMetrics.mjs} (100%) rename services/web/app/src/infrastructure/{Csrf.js => Csrf.mjs} (100%) rename services/web/app/src/infrastructure/{CustomSessionStore.js => CustomSessionStore.mjs} (100%) rename services/web/app/src/infrastructure/{ExpressLocals.js => ExpressLocals.mjs} (100%) rename services/web/app/src/infrastructure/{FrontEndUser.js => FrontEndUser.mjs} (100%) rename services/web/app/src/infrastructure/{GeoIpLookup.js => GeoIpLookup.mjs} (100%) rename services/web/app/src/infrastructure/{JsonWebToken.js => JsonWebToken.mjs} (100%) rename services/web/app/src/infrastructure/{Keys.js => Keys.mjs} (100%) rename services/web/app/src/infrastructure/{LoggerSerializers.js => LoggerSerializers.mjs} (100%) rename services/web/app/src/infrastructure/{QueueWorkers.js => QueueWorkers.mjs} (100%) rename services/web/app/src/infrastructure/{RedirectManager.js => RedirectManager.mjs} (100%) rename services/web/app/src/infrastructure/{SessionAutostartMiddleware.js => SessionAutostartMiddleware.mjs} (100%) rename services/web/app/src/infrastructure/{SiteAdminHandler.js => SiteAdminHandler.mjs} (100%) rename services/web/app/src/infrastructure/{Translations.js => Translations.mjs} (100%) rename services/web/app/src/infrastructure/{UnsupportedBrowserMiddleware.js => UnsupportedBrowserMiddleware.mjs} (100%) rename services/web/test/unit/src/Security/{SessionAutostartMiddlewareTests.js => SessionAutostartMiddleware.test.mjs} (71%) rename services/web/test/unit/src/infrastructure/{CsrfTests.js => Csrf.test.mjs} (100%) rename services/web/test/unit/src/infrastructure/{GeoIpLookupTest.js => GeoIpLookup.test.mjs} (100%) rename services/web/test/unit/src/infrastructure/{TranslationsTests.js => Translations.test.mjs} (100%) diff --git a/services/web/app.mjs b/services/web/app.mjs index b04b9ef5dd..3ad7a765d9 100644 --- a/services/web/app.mjs +++ b/services/web/app.mjs @@ -7,12 +7,12 @@ import Settings from '@overleaf/settings' import logger from '@overleaf/logger' import PlansLocator from './app/src/Features/Subscription/PlansLocator.js' import HistoryManager from './app/src/Features/History/HistoryManager.js' -import SiteAdminHandler from './app/src/infrastructure/SiteAdminHandler.js' +import SiteAdminHandler from './app/src/infrastructure/SiteAdminHandler.mjs' import http from 'node:http' import https from 'node:https' -import * as Serializers from './app/src/infrastructure/LoggerSerializers.js' +import * as Serializers from './app/src/infrastructure/LoggerSerializers.mjs' import Server from './app/src/infrastructure/Server.mjs' -import QueueWorkers from './app/src/infrastructure/QueueWorkers.js' +import QueueWorkers from './app/src/infrastructure/QueueWorkers.mjs' import mongodb from './app/src/infrastructure/mongodb.js' import mongoose from './app/src/infrastructure/Mongoose.js' import { triggerGracefulShutdown } from './app/src/infrastructure/GracefulShutdown.js' diff --git a/services/web/app/src/Features/Analytics/AnalyticsController.mjs b/services/web/app/src/Features/Analytics/AnalyticsController.mjs index 7d9188f64e..bc207493ed 100644 --- a/services/web/app/src/Features/Analytics/AnalyticsController.mjs +++ b/services/web/app/src/Features/Analytics/AnalyticsController.mjs @@ -1,7 +1,7 @@ import metrics from '@overleaf/metrics' import AnalyticsManager from './AnalyticsManager.js' import SessionManager from '../Authentication/SessionManager.js' -import GeoIpLookup from '../../infrastructure/GeoIpLookup.js' +import GeoIpLookup from '../../infrastructure/GeoIpLookup.mjs' import Features from '../../infrastructure/Features.js' import { expressify } from '@overleaf/promise-utils' import AccountMappingHelper from './AccountMappingHelper.js' diff --git a/services/web/app/src/Features/Project/ProjectListController.mjs b/services/web/app/src/Features/Project/ProjectListController.mjs index 0c5c5992be..73f4d3dc5b 100644 --- a/services/web/app/src/Features/Project/ProjectListController.mjs +++ b/services/web/app/src/Features/Project/ProjectListController.mjs @@ -22,7 +22,7 @@ import { User } from '../../models/User.js' import UserPrimaryEmailCheckHandler from '../User/UserPrimaryEmailCheckHandler.js' import UserController from '../User/UserController.mjs' import NotificationsBuilder from '../Notifications/NotificationsBuilder.js' -import GeoIpLookup from '../../infrastructure/GeoIpLookup.js' +import GeoIpLookup from '../../infrastructure/GeoIpLookup.mjs' import SplitTestHandler from '../SplitTests/SplitTestHandler.js' import SplitTestSessionHandler from '../SplitTests/SplitTestSessionHandler.js' import TutorialHandler from '../Tutorial/TutorialHandler.mjs' diff --git a/services/web/app/src/Features/Subscription/SubscriptionController.mjs b/services/web/app/src/Features/Subscription/SubscriptionController.mjs index 641f1eaa53..54780302f6 100644 --- a/services/web/app/src/Features/Subscription/SubscriptionController.mjs +++ b/services/web/app/src/Features/Subscription/SubscriptionController.mjs @@ -8,7 +8,7 @@ import LimitationsManager from './LimitationsManager.js' import RecurlyWrapper from './RecurlyWrapper.js' import Settings from '@overleaf/settings' import logger from '@overleaf/logger' -import GeoIpLookup from '../../infrastructure/GeoIpLookup.js' +import GeoIpLookup from '../../infrastructure/GeoIpLookup.mjs' import FeaturesUpdater from './FeaturesUpdater.js' import GroupPlansData from './GroupPlansData.js' import V1SubscriptionManager from './V1SubscriptionManager.js' @@ -31,7 +31,7 @@ import PlansLocator from './PlansLocator.js' import { User } from '../../models/User.js' import UserGetter from '../User/UserGetter.js' import PermissionsManager from '../Authorization/PermissionsManager.mjs' -import { sanitizeSessionUserForFrontEnd } from '../../infrastructure/FrontEndUser.js' +import { sanitizeSessionUserForFrontEnd } from '../../infrastructure/FrontEndUser.mjs' import { z, validateReq } from '../../infrastructure/Validation.js' import { IndeterminateInvoiceError } from '../Errors/Errors.js' import SubscriptionLocator from './SubscriptionLocator.js' diff --git a/services/web/app/src/Features/Subscription/TeamInvitesController.mjs b/services/web/app/src/Features/Subscription/TeamInvitesController.mjs index 6048da1ccf..774425e377 100644 --- a/services/web/app/src/Features/Subscription/TeamInvitesController.mjs +++ b/services/web/app/src/Features/Subscription/TeamInvitesController.mjs @@ -15,7 +15,7 @@ import EmailHandler from '../Email/EmailHandler.js' import { RateLimiter } from '../../infrastructure/RateLimiter.js' import Modules from '../../infrastructure/Modules.js' import UserAuditLogHandler from '../User/UserAuditLogHandler.js' -import { sanitizeSessionUserForFrontEnd } from '../../infrastructure/FrontEndUser.js' +import { sanitizeSessionUserForFrontEnd } from '../../infrastructure/FrontEndUser.mjs' const rateLimiters = { resendGroupInvite: new RateLimiter('resend-group-invite', { diff --git a/services/web/app/src/infrastructure/BodyParserWrapper.js b/services/web/app/src/infrastructure/BodyParserWrapper.mjs similarity index 100% rename from services/web/app/src/infrastructure/BodyParserWrapper.js rename to services/web/app/src/infrastructure/BodyParserWrapper.mjs diff --git a/services/web/app/src/infrastructure/CSP.js b/services/web/app/src/infrastructure/CSP.mjs similarity index 100% rename from services/web/app/src/infrastructure/CSP.js rename to services/web/app/src/infrastructure/CSP.mjs diff --git a/services/web/app/src/infrastructure/CookieMetrics.js b/services/web/app/src/infrastructure/CookieMetrics.mjs similarity index 100% rename from services/web/app/src/infrastructure/CookieMetrics.js rename to services/web/app/src/infrastructure/CookieMetrics.mjs diff --git a/services/web/app/src/infrastructure/Csrf.js b/services/web/app/src/infrastructure/Csrf.mjs similarity index 100% rename from services/web/app/src/infrastructure/Csrf.js rename to services/web/app/src/infrastructure/Csrf.mjs diff --git a/services/web/app/src/infrastructure/CustomSessionStore.js b/services/web/app/src/infrastructure/CustomSessionStore.mjs similarity index 100% rename from services/web/app/src/infrastructure/CustomSessionStore.js rename to services/web/app/src/infrastructure/CustomSessionStore.mjs diff --git a/services/web/app/src/infrastructure/ExpressLocals.js b/services/web/app/src/infrastructure/ExpressLocals.mjs similarity index 100% rename from services/web/app/src/infrastructure/ExpressLocals.js rename to services/web/app/src/infrastructure/ExpressLocals.mjs diff --git a/services/web/app/src/infrastructure/FrontEndUser.js b/services/web/app/src/infrastructure/FrontEndUser.mjs similarity index 100% rename from services/web/app/src/infrastructure/FrontEndUser.js rename to services/web/app/src/infrastructure/FrontEndUser.mjs diff --git a/services/web/app/src/infrastructure/GeoIpLookup.js b/services/web/app/src/infrastructure/GeoIpLookup.mjs similarity index 100% rename from services/web/app/src/infrastructure/GeoIpLookup.js rename to services/web/app/src/infrastructure/GeoIpLookup.mjs diff --git a/services/web/app/src/infrastructure/JsonWebToken.js b/services/web/app/src/infrastructure/JsonWebToken.mjs similarity index 100% rename from services/web/app/src/infrastructure/JsonWebToken.js rename to services/web/app/src/infrastructure/JsonWebToken.mjs diff --git a/services/web/app/src/infrastructure/Keys.js b/services/web/app/src/infrastructure/Keys.mjs similarity index 100% rename from services/web/app/src/infrastructure/Keys.js rename to services/web/app/src/infrastructure/Keys.mjs diff --git a/services/web/app/src/infrastructure/LoggerSerializers.js b/services/web/app/src/infrastructure/LoggerSerializers.mjs similarity index 100% rename from services/web/app/src/infrastructure/LoggerSerializers.js rename to services/web/app/src/infrastructure/LoggerSerializers.mjs diff --git a/services/web/app/src/infrastructure/QueueWorkers.js b/services/web/app/src/infrastructure/QueueWorkers.mjs similarity index 100% rename from services/web/app/src/infrastructure/QueueWorkers.js rename to services/web/app/src/infrastructure/QueueWorkers.mjs diff --git a/services/web/app/src/infrastructure/RedirectManager.js b/services/web/app/src/infrastructure/RedirectManager.mjs similarity index 100% rename from services/web/app/src/infrastructure/RedirectManager.js rename to services/web/app/src/infrastructure/RedirectManager.mjs diff --git a/services/web/app/src/infrastructure/Server.mjs b/services/web/app/src/infrastructure/Server.mjs index 1709c4cc4d..62e0a99288 100644 --- a/services/web/app/src/infrastructure/Server.mjs +++ b/services/web/app/src/infrastructure/Server.mjs @@ -3,26 +3,26 @@ import Settings from '@overleaf/settings' import logger from '@overleaf/logger' import metrics from '@overleaf/metrics' import Validation from './Validation.js' -import csp from './CSP.js' +import csp from './CSP.mjs' import Router from '../router.mjs' import helmet from 'helmet' import UserSessionsRedis from '../Features/User/UserSessionsRedis.js' -import Csrf from './Csrf.js' +import Csrf from './Csrf.mjs' import HttpPermissionsPolicyMiddleware from './HttpPermissionsPolicy.js' -import SessionAutostartMiddleware from './SessionAutostartMiddleware.js' +import SessionAutostartMiddleware from './SessionAutostartMiddleware.mjs' import AnalyticsManager from '../Features/Analytics/AnalyticsManager.js' import session from 'express-session' -import CookieMetrics from './CookieMetrics.js' -import CustomSessionStore from './CustomSessionStore.js' -import bodyParser from './BodyParserWrapper.js' +import CookieMetrics from './CookieMetrics.mjs' +import CustomSessionStore from './CustomSessionStore.mjs' +import bodyParser from './BodyParserWrapper.mjs' import methodOverride from 'method-override' import cookieParser from 'cookie-parser' import bearerTokenMiddleware from 'express-bearer-token' import passport from 'passport' import { Strategy as LocalStrategy } from 'passport-local' import ReferalConnect from '../Features/Referal/ReferalConnect.mjs' -import RedirectManager from './RedirectManager.js' -import translations from './Translations.js' +import RedirectManager from './RedirectManager.mjs' +import translations from './Translations.mjs' import Views from './Views.js' import Features from './Features.js' import ErrorController from '../Features/Errors/ErrorController.mjs' @@ -32,7 +32,7 @@ import AuthenticationController from '../Features/Authentication/AuthenticationC import SessionManager from '../Features/Authentication/SessionManager.js' import { hasAdminAccess } from '../Features/Helpers/AdminAuthorizationHelper.js' import Modules from './Modules.js' -import expressLocals from './ExpressLocals.js' +import expressLocals from './ExpressLocals.mjs' import noCache from 'nocache' import os from 'node:os' import http from 'node:http' diff --git a/services/web/app/src/infrastructure/SessionAutostartMiddleware.js b/services/web/app/src/infrastructure/SessionAutostartMiddleware.mjs similarity index 100% rename from services/web/app/src/infrastructure/SessionAutostartMiddleware.js rename to services/web/app/src/infrastructure/SessionAutostartMiddleware.mjs diff --git a/services/web/app/src/infrastructure/SiteAdminHandler.js b/services/web/app/src/infrastructure/SiteAdminHandler.mjs similarity index 100% rename from services/web/app/src/infrastructure/SiteAdminHandler.js rename to services/web/app/src/infrastructure/SiteAdminHandler.mjs diff --git a/services/web/app/src/infrastructure/Translations.js b/services/web/app/src/infrastructure/Translations.mjs similarity index 100% rename from services/web/app/src/infrastructure/Translations.js rename to services/web/app/src/infrastructure/Translations.mjs diff --git a/services/web/app/src/infrastructure/UnsupportedBrowserMiddleware.js b/services/web/app/src/infrastructure/UnsupportedBrowserMiddleware.mjs similarity index 100% rename from services/web/app/src/infrastructure/UnsupportedBrowserMiddleware.js rename to services/web/app/src/infrastructure/UnsupportedBrowserMiddleware.mjs diff --git a/services/web/app/src/router.mjs b/services/web/app/src/router.mjs index b3298b5645..760589460a 100644 --- a/services/web/app/src/router.mjs +++ b/services/web/app/src/router.mjs @@ -58,7 +58,7 @@ import SystemMessageController from './Features/SystemMessages/SystemMessageCont import AnalyticsRegistrationSourceMiddleware from './Features/Analytics/AnalyticsRegistrationSourceMiddleware.mjs' import AnalyticsUTMTrackingMiddleware from './Features/Analytics/AnalyticsUTMTrackingMiddleware.mjs' import CaptchaMiddleware from './Features/Captcha/CaptchaMiddleware.mjs' -import UnsupportedBrowserMiddleware from './infrastructure/UnsupportedBrowserMiddleware.js' +import UnsupportedBrowserMiddleware from './infrastructure/UnsupportedBrowserMiddleware.mjs' import logger from '@overleaf/logger' import _ from 'lodash' import { plainTextResponse } from './infrastructure/Response.js' diff --git a/services/web/test/acceptance/src/helpers/InitApp.mjs b/services/web/test/acceptance/src/helpers/InitApp.mjs index d1ea137fef..ca8567cef4 100644 --- a/services/web/test/acceptance/src/helpers/InitApp.mjs +++ b/services/web/test/acceptance/src/helpers/InitApp.mjs @@ -1,5 +1,5 @@ import App from '../../../../app.mjs' -import QueueWorkers from '../../../../app/src/infrastructure/QueueWorkers.js' +import QueueWorkers from '../../../../app/src/infrastructure/QueueWorkers.mjs' import MongoHelper from './MongoHelper.mjs' import RedisHelper from './RedisHelper.mjs' import Settings from '@overleaf/settings' diff --git a/services/web/test/unit/src/Analytics/AnalyticsController.test.mjs b/services/web/test/unit/src/Analytics/AnalyticsController.test.mjs index f0d047ef28..84aee5f2f5 100644 --- a/services/web/test/unit/src/Analytics/AnalyticsController.test.mjs +++ b/services/web/test/unit/src/Analytics/AnalyticsController.test.mjs @@ -37,7 +37,7 @@ describe('AnalyticsController', function () { default: ctx.Features, })) - vi.doMock('../../../../app/src/infrastructure/GeoIpLookup.js', () => ({ + vi.doMock('../../../../app/src/infrastructure/GeoIpLookup.mjs', () => ({ default: (ctx.GeoIpLookup = { promises: { getDetails: sinon.stub().resolves(), diff --git a/services/web/test/unit/src/Security/SessionAutostartMiddlewareTests.js b/services/web/test/unit/src/Security/SessionAutostartMiddleware.test.mjs similarity index 71% rename from services/web/test/unit/src/Security/SessionAutostartMiddlewareTests.js rename to services/web/test/unit/src/Security/SessionAutostartMiddleware.test.mjs index df4af22f85..eebd10544f 100644 --- a/services/web/test/unit/src/Security/SessionAutostartMiddlewareTests.js +++ b/services/web/test/unit/src/Security/SessionAutostartMiddleware.test.mjs @@ -1,26 +1,25 @@ -const sinon = require('sinon') -const { expect } = require('chai') +import { beforeEach, describe, expect, it, vi } from 'vitest' +import sinon from 'sinon' const modulePath = - '../../../../app/src/infrastructure/SessionAutostartMiddleware.js' -const SandboxedModule = require('sandboxed-module') + '../../../../app/src/infrastructure/SessionAutostartMiddleware.mjs' -describe('SessionAutostartMiddleware', function () { +describe('SessionAutostartMiddleware', () => { let SessionAutostartMiddleware, middleware, Settings const cookieName = 'coookieee' const excludedRoute = '/wombat/potato' const excludedMethod = 'POST' const excludedCallback = () => 'call me' - beforeEach(function () { + beforeEach(async () => { Settings = { cookieName, } - SessionAutostartMiddleware = SandboxedModule.require(modulePath, { - requires: { - '@overleaf/settings': Settings, - }, - }) + vi.doMock('@overleaf/settings', () => ({ + default: Settings, + })) + + SessionAutostartMiddleware = (await import(modulePath)).default middleware = new SessionAutostartMiddleware() middleware.disableSessionAutostartForRoute( @@ -30,10 +29,10 @@ describe('SessionAutostartMiddleware', function () { ) }) - describe('middleware', function () { + describe('middleware', () => { let req, next - beforeEach(function () { + beforeEach(() => { req = { path: excludedRoute, method: excludedMethod, @@ -43,46 +42,46 @@ describe('SessionAutostartMiddleware', function () { next = sinon.stub() }) - it('executes the callback for the excluded route', function () { + it('executes the callback for the excluded route', () => { middleware.middleware(req, {}, next) expect(req.session.noSessionCallback).to.equal(excludedCallback) }) - it('does not execute the callback for the excluded route with ?autostartSession=true set', function () { + it('does not execute the callback for the excluded route with ?autostartSession=true set', () => { req.query = { autostartSession: 'true' } middleware.middleware(req, {}, next) expect(req.session).not.to.exist }) - it('does not execute the callback if the method is not excluded', function () { + it('does not execute the callback if the method is not excluded', () => { req.method = 'GET' middleware.middleware(req, {}, next) expect(req.session).not.to.exist }) - it('does not execute the callback if the method is not excluded and ?autostartSession=true is set', function () { + it('does not execute the callback if the method is not excluded and ?autostartSession=true is set', () => { req.method = 'GET' req.query = { autostartSession: 'true' } middleware.middleware(req, {}, next) expect(req.session).not.to.exist }) - it('does not execute the callback if the path is not excluded', function () { + it('does not execute the callback if the path is not excluded', () => { req.path = '/giraffe' middleware.middleware(req, {}, next) expect(req.session).not.to.exist }) - it('does not execute the callback if there is a cookie', function () { + it('does not execute the callback if there is a cookie', () => { req.signedCookies[cookieName] = 'a very useful session cookie' middleware.middleware(req, {}, next) expect(req.session).not.to.exist }) }) - describe('bot middlewear', function () { + describe('bot middlewear', () => { let req, next - beforeEach(function () { + beforeEach(() => { req = { signedCookies: {}, headers: {}, @@ -90,19 +89,19 @@ describe('SessionAutostartMiddleware', function () { next = sinon.stub() }) - it('GoogleHC user agent should have an empty session', function () { + it('GoogleHC user agent should have an empty session', () => { req.headers['user-agent'] = 'GoogleHC' middleware.middleware(req, {}, next) expect(req.session.noSessionCallback).to.deep.exist }) - it('should not add empty session with a firefox useragent', function () { + it('should not add empty session with a firefox useragent', () => { req.headers['user-agent'] = 'firefox' middleware.middleware(req, {}, next) expect(req.session).not.to.exist }) - it('should not add empty session with a empty useragent', function () { + it('should not add empty session with a empty useragent', () => { middleware.middleware(req, {}, next) expect(req.session).not.to.exist }) diff --git a/services/web/test/unit/src/infrastructure/CsrfTests.js b/services/web/test/unit/src/infrastructure/Csrf.test.mjs similarity index 100% rename from services/web/test/unit/src/infrastructure/CsrfTests.js rename to services/web/test/unit/src/infrastructure/Csrf.test.mjs diff --git a/services/web/test/unit/src/infrastructure/GeoIpLookupTest.js b/services/web/test/unit/src/infrastructure/GeoIpLookup.test.mjs similarity index 100% rename from services/web/test/unit/src/infrastructure/GeoIpLookupTest.js rename to services/web/test/unit/src/infrastructure/GeoIpLookup.test.mjs diff --git a/services/web/test/unit/src/infrastructure/TranslationsTests.js b/services/web/test/unit/src/infrastructure/Translations.test.mjs similarity index 100% rename from services/web/test/unit/src/infrastructure/TranslationsTests.js rename to services/web/test/unit/src/infrastructure/Translations.test.mjs diff --git a/services/web/webpack.config.js b/services/web/webpack.config.js index 8cad9ea47c..3bca6a3a23 100644 --- a/services/web/webpack.config.js +++ b/services/web/webpack.config.js @@ -8,7 +8,7 @@ const { LezerGrammarCompilerPlugin, } = require('./webpack-plugins/lezer-grammar-compiler') -const PackageVersions = require('./app/src/infrastructure/PackageVersions') +const PackageVersions = require('./app/src/infrastructure/PackageVersions.js') const invalidateBabelCacheIfNeeded = require('./frontend/macros/invalidate-babel-cache-if-needed') // Make sure that babel-macros are re-evaluated after changing the modules config