Skip to content

Commit d914e6f

Browse files
committed
fix: remove jslint error from test file
1 parent b6183e0 commit d914e6f

4 files changed

Lines changed: 38 additions & 1 deletion

File tree

server.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// server.js
2+
const { NestFactory } = require('@nestjs/core');
3+
const { AppModule } = require('./dist/app.module').default;
4+
5+
async function bootstrap() {
6+
const app = await NestFactory.create(AppModule);
7+
await app.listen(3000);
8+
}
9+
10+
bootstrap();

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ bootstrap().catch(async (error: Error) => {
4545
console.log('Error during application bootstrap:', error);
4646
process.exit(1);
4747
});
48+
49+
export { AppModule } from './app.module';

test/notification/notification.controller.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ describe('NotificationController', () => {
113113
jest.spyOn(repository, 'findAll');
114114
const result = await controller.getNotificationHistory(1, 10);
115115

116-
// eslint-disable-next-line @typescript-eslint/unbound-method
116+
// eslint-disable-next-line @typescript-eslint/unbound-method, @typescript-eslint/no-unsafe-call
117117
expect(repository.findAll).toHaveBeenCalledWith(0, 10);
118118
expect(result).toEqual({
119119
data: [mockNotification],

web.config

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<system.webServer>
4+
<handlers>
5+
<remove name="IISExpressDebuggingHandler" />
6+
<add name="iisnode" path="server.js" verb="*" modules="iisnode" />
7+
</handlers>
8+
9+
<rewrite>
10+
<rules>
11+
<rule name="DynamicContent">
12+
<match url="/*" />
13+
<action type="Rewrite" url="server.js" />
14+
</rule>
15+
</rules>
16+
</rewrite>
17+
18+
<iisnode
19+
nodeProcessCommandLine="&quot;C:\Program Files\nodejs\node.exe&quot;"
20+
loggingEnabled="true"
21+
logDirectory="iisnode_logs"
22+
devErrorsEnabled="true"
23+
/>
24+
</system.webServer>
25+
</configuration>

0 commit comments

Comments
 (0)