diff --git a/packages/common/cache/interfaces/cache-module.interface.ts b/packages/common/cache/interfaces/cache-module.interface.ts index 5beb769c8..21adf8b36 100644 --- a/packages/common/cache/interfaces/cache-module.interface.ts +++ b/packages/common/cache/interfaces/cache-module.interface.ts @@ -4,7 +4,7 @@ import { CacheManagerOptions } from './cache-manager.interface'; export type CacheModuleOptions< StoreConfig extends Record = Record, > = - // Store-specfic configuration takes precedence over cache module options due + // Store-specific configuration takes precedence over cache module options due // to how `createCacheManager` is implemented. CacheManagerOptions & StoreConfig & { diff --git a/packages/common/interfaces/nest-application-context.interface.ts b/packages/common/interfaces/nest-application-context.interface.ts index 11888397a..e10dfc306 100644 --- a/packages/common/interfaces/nest-application-context.interface.ts +++ b/packages/common/interfaces/nest-application-context.interface.ts @@ -72,7 +72,7 @@ export interface INestApplicationContext { enableShutdownHooks(signals?: ShutdownSignal[] | string[]): this; /** - * Initalizes the Nest application. + * Initializes the Nest application. * Calls the Nest lifecycle events. * It isn't mandatory to call this method directly. * diff --git a/packages/common/interfaces/version-options.interface.ts b/packages/common/interfaces/version-options.interface.ts index fcdd786b6..c6626436f 100644 --- a/packages/common/interfaces/version-options.interface.ts +++ b/packages/common/interfaces/version-options.interface.ts @@ -18,7 +18,7 @@ export type VersionValue = export interface VersionOptions { /** * Specifies an optional API Version. When configured, methods - * withing the controller will only be routed if the request version + * within the controller will only be routed if the request version * matches the specified value. * * Supported only by HTTP-based applications (does not apply to non-HTTP microservices). diff --git a/packages/common/services/console-logger.service.ts b/packages/common/services/console-logger.service.ts index a1a9ffb6c..ecaf43ab8 100644 --- a/packages/common/services/console-logger.service.ts +++ b/packages/common/services/console-logger.service.ts @@ -188,7 +188,7 @@ export class ConsoleLogger implements LoggerService { const contextMessage = context ? yellow(`[${context}] `) : ''; const timestampDiff = this.updateAndGetTimestampDiff(); const formattedLogLevel = logLevel.toUpperCase().padStart(7, ' '); - const formatedMessage = this.formatMessage( + const formattedMessage = this.formatMessage( logLevel, message, pidMessage, @@ -197,7 +197,7 @@ export class ConsoleLogger implements LoggerService { timestampDiff, ); - process[writeStreamType ?? 'stdout'].write(formatedMessage); + process[writeStreamType ?? 'stdout'].write(formattedMessage); }); } diff --git a/packages/common/test/file-stream/streamable-file.spec.ts b/packages/common/test/file-stream/streamable-file.spec.ts index 7bfd43301..411e6224d 100644 --- a/packages/common/test/file-stream/streamable-file.spec.ts +++ b/packages/common/test/file-stream/streamable-file.spec.ts @@ -4,14 +4,14 @@ import { StreamableFile } from '../../file-stream'; describe('StreamableFile', () => { describe('when input is a readable stream', () => { - it('should assing it to a stream class property', () => { + it('should assign it to a stream class property', () => { const stream = new Readable(); const streamableFile = new StreamableFile(stream); expect(streamableFile.getStream()).to.equal(stream); }); }); describe('when input is an object with "pipe" method', () => { - it('should assing it to a stream class property', () => { + it('should assign it to a stream class property', () => { const stream = { pipe: () => {} }; const streamableFile = new StreamableFile(stream as any); expect(streamableFile.getStream()).to.equal(stream); diff --git a/packages/core/injector/lazy-module-loader.ts b/packages/core/injector/lazy-module-loader.ts index caba14116..6b39e5204 100644 --- a/packages/core/injector/lazy-module-loader.ts +++ b/packages/core/injector/lazy-module-loader.ts @@ -26,7 +26,7 @@ export class LazyModuleLoader { ); if (moduleInstances.length === 0) { // The module has been loaded already. In this case, we must - // retrieve a module reference from the exising container. + // retrieve a module reference from the existing container. const { token } = await this.moduleCompiler.compile( moduleClassOrDynamicDefinition, ); diff --git a/packages/core/test/injector/injector.spec.ts b/packages/core/test/injector/injector.spec.ts index 3a1068afc..693613548 100644 --- a/packages/core/test/injector/injector.spec.ts +++ b/packages/core/test/injector/injector.spec.ts @@ -595,7 +595,7 @@ describe('Injector', () => { }); }); - describe('when instanceWraper has async property', () => { + describe('when instanceWrapper has async property', () => { it('should await instance', async () => { sinon.stub(injector, 'loadProvider').callsFake(() => null); diff --git a/packages/core/test/injector/internal-core-module-factory.spec.ts b/packages/core/test/injector/internal-core-module-factory.spec.ts index 85cf9cfe5..92499cf95 100644 --- a/packages/core/test/injector/internal-core-module-factory.spec.ts +++ b/packages/core/test/injector/internal-core-module-factory.spec.ts @@ -8,7 +8,7 @@ import { InternalCoreModule } from '../../injector/internal-core-module'; import { InternalCoreModuleFactory } from '../../injector/internal-core-module-factory'; describe('InternalCoreModuleFactory', () => { - it('should return the interal core module definition', () => { + it('should return the internal core module definition', () => { const moduleDefinition = InternalCoreModuleFactory.create( new NestContainer(), null, diff --git a/packages/core/test/router/router-response-controller.spec.ts b/packages/core/test/router/router-response-controller.spec.ts index ebe155639..92a306135 100644 --- a/packages/core/test/router/router-response-controller.spec.ts +++ b/packages/core/test/router/router-response-controller.spec.ts @@ -356,7 +356,7 @@ data: test request as unknown as IncomingMessage, ); } catch { - // Wether an error is thrown or not + // Whether an error is thrown or not // is not relevant, so long as // result is not called } diff --git a/packages/microservices/ctx-host/mqtt.context.ts b/packages/microservices/ctx-host/mqtt.context.ts index 0693c35d3..3b953516a 100644 --- a/packages/microservices/ctx-host/mqtt.context.ts +++ b/packages/microservices/ctx-host/mqtt.context.ts @@ -15,7 +15,7 @@ export class MqttContext extends BaseRpcContext { } /** - * Returns the refernce to the original MQTT packet. + * Returns the reference to the original MQTT packet. */ getPacket() { return this.args[1]; diff --git a/packages/microservices/test/client/client-mqtt.spec.ts b/packages/microservices/test/client/client-mqtt.spec.ts index a5dc9032f..b3131af73 100644 --- a/packages/microservices/test/client/client-mqtt.spec.ts +++ b/packages/microservices/test/client/client-mqtt.spec.ts @@ -110,7 +110,7 @@ describe('ClientMqtt', () => { it('should unsubscribe to response pattern name', () => { expect(unsubscribeSpy.calledWith(channel)).to.be.true; }); - it('should remove callback from routin map', () => { + it('should remove callback from routing map', () => { expect(client['routingMap'].has(id)).to.be.false; }); }); diff --git a/packages/microservices/test/deserializers/kafka-response.deserializer.spec.ts b/packages/microservices/test/deserializers/kafka-response.deserializer.spec.ts index 2941c6875..30b327642 100644 --- a/packages/microservices/test/deserializers/kafka-response.deserializer.spec.ts +++ b/packages/microservices/test/deserializers/kafka-response.deserializer.spec.ts @@ -26,7 +26,7 @@ describe('KafkaResponseDeserializer', () => { }); }); describe('when is disposed header is present', () => { - it('should return an objet with "isDisposed"', () => { + it('should return an object with "isDisposed"', () => { const value = 'test'; const packet = instance.deserialize({ headers: { diff --git a/packages/microservices/test/listeners-controller.spec.ts b/packages/microservices/test/listeners-controller.spec.ts index b23b13c16..f372050f0 100644 --- a/packages/microservices/test/listeners-controller.spec.ts +++ b/packages/microservices/test/listeners-controller.spec.ts @@ -247,7 +247,7 @@ describe('ListenersController', () => { }); describe('assignClientToInstance', () => { - it('should assing client to instance', () => { + it('should assign client to instance', () => { const propertyKey = 'key'; const object = {}; const client = { test: true }; diff --git a/packages/microservices/test/serializers/mqtt-record.serializer.spec.ts b/packages/microservices/test/serializers/mqtt-record.serializer.spec.ts index 95a50d3b5..ff3d33f1c 100644 --- a/packages/microservices/test/serializers/mqtt-record.serializer.spec.ts +++ b/packages/microservices/test/serializers/mqtt-record.serializer.spec.ts @@ -26,7 +26,7 @@ describe('MqttRecordSerializer', () => { data: { value: 'string' }, }); }); - it('should act as an indentity function if msg is not an instance of MqttRecord class', () => { + it('should act as an identity function if msg is not an instance of MqttRecord class', () => { const packet = { data: { random: true }, }; diff --git a/packages/microservices/test/serializers/rmq-record.serializer.spec.ts b/packages/microservices/test/serializers/rmq-record.serializer.spec.ts index 8551d823f..eb3f80973 100644 --- a/packages/microservices/test/serializers/rmq-record.serializer.spec.ts +++ b/packages/microservices/test/serializers/rmq-record.serializer.spec.ts @@ -24,7 +24,7 @@ describe('RmqRecordSerializer', () => { }); }); - it('should act as an indentity function if msg is not an instance of RmqRecord class', () => { + it('should act as an identity function if msg is not an instance of RmqRecord class', () => { const packet = { data: { random: true }, }; diff --git a/packages/microservices/test/server/server-mqtt.spec.ts b/packages/microservices/test/server/server-mqtt.spec.ts index c5a0e30f2..8e63a0162 100644 --- a/packages/microservices/test/server/server-mqtt.spec.ts +++ b/packages/microservices/test/server/server-mqtt.spec.ts @@ -175,7 +175,7 @@ describe('ServerMqtt', () => { }); describe('getRequestPattern', () => { const test = 'test'; - it(`should leave patern as it is`, () => { + it(`should leave pattern as it is`, () => { expect(server.getRequestPattern(test)).to.equal(test); }); });