mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 09:47:46 +03:00
fixup! Сборка Docker image
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "nest build && npx prisma generate",
|
"build": "npx prisma generate && nest build",
|
||||||
"format": "prettier --write \"src/**/*.ts\"",
|
"format": "prettier --write \"src/**/*.ts\"",
|
||||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||||
"precommit": "npm run format && npm run lint",
|
"precommit": "npm run format && npm run lint",
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ import {
|
|||||||
Controller,
|
Controller,
|
||||||
HttpCode,
|
HttpCode,
|
||||||
HttpStatus,
|
HttpStatus,
|
||||||
Param, Patch,
|
Param,
|
||||||
Post, Query,
|
Patch,
|
||||||
|
Post,
|
||||||
|
Query,
|
||||||
UseGuards,
|
UseGuards,
|
||||||
} from "@nestjs/common";
|
} from "@nestjs/common";
|
||||||
import { AuthGuard } from "../auth/auth.guard";
|
import { AuthGuard } from "../auth/auth.guard";
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
import { Test, TestingModule } from '@nestjs/testing';
|
import { Test, TestingModule } from "@nestjs/testing";
|
||||||
import { VKIDController } from './vkid.controller';
|
import { VKIDController } from "./vkid.controller";
|
||||||
|
|
||||||
describe('VkidController', () => {
|
describe("VkidController", () => {
|
||||||
let controller: VKIDController;
|
let controller: VKIDController;
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
const module: TestingModule = await Test.createTestingModule({
|
const module: TestingModule = await Test.createTestingModule({
|
||||||
controllers: [VKIDController],
|
controllers: [VKIDController],
|
||||||
}).compile();
|
}).compile();
|
||||||
|
|
||||||
controller = module.get<VKIDController>(VKIDController);
|
controller = module.get<VKIDController>(VKIDController);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should be defined', () => {
|
it("should be defined", () => {
|
||||||
expect(controller).toBeDefined();
|
expect(controller).toBeDefined();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
import { Test, TestingModule } from '@nestjs/testing';
|
import { Test, TestingModule } from "@nestjs/testing";
|
||||||
import { VKIDService } from './vkid.service';
|
import { VKIDService } from "./vkid.service";
|
||||||
|
|
||||||
describe('VkidService', () => {
|
describe("VkidService", () => {
|
||||||
let service: VKIDService;
|
let service: VKIDService;
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
const module: TestingModule = await Test.createTestingModule({
|
const module: TestingModule = await Test.createTestingModule({
|
||||||
providers: [VKIDService],
|
providers: [VKIDService],
|
||||||
}).compile();
|
}).compile();
|
||||||
|
|
||||||
service = module.get<VKIDService>(VKIDService);
|
service = module.get<VKIDService>(VKIDService);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should be defined', () => {
|
it("should be defined", () => {
|
||||||
expect(service).toBeDefined();
|
expect(service).toBeDefined();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user