Skip to content

Commit

Permalink
test: disable mikro-orm integration test that use old @tsed/testing-m…
Browse files Browse the repository at this point in the history
…ongoose package
  • Loading branch information
Romakita committed Sep 8, 2024
1 parent 162d0d9 commit f7e9953
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 335 deletions.
1 change: 0 additions & 1 deletion packages/orm/mikro-orm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"@tsed/json-mapper": "workspace:*",
"@tsed/logger": ">=6.7.5",
"@tsed/schema": "workspace:*",
"@tsed/testing-mongoose": "workspace:*",
"@tsed/typescript": "workspace:*",
"cross-env": "7.0.3",
"eslint": "^8.57.0",
Expand Down
21 changes: 10 additions & 11 deletions packages/orm/mikro-orm/test/integration.spec.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
import {EntityManager, MikroORM} from "@mikro-orm/core";
import {defineConfig} from "@mikro-orm/mongodb";
import {PlatformTest} from "@tsed/common";
import {Logger} from "@tsed/logger";
import {TestMongooseContext} from "@tsed/testing-mongoose";
import {anyOfClass, anything, reset, spy, verify} from "ts-mockito";
import {MikroOrmModule, TransactionalInterceptor} from "../src/index.js";
import {User} from "./helpers/entity/User.js";
import {Server} from "./helpers/Server.js";
import {UserService} from "./helpers/services/UserService.js";
import {EntityManager, MikroORM} from "@mikro-orm/core";
import {anyOfClass, anything, reset, spy, verify} from "ts-mockito";
import {Hooks} from "./helpers/services/Hooks.js";
import {UnmanagedEventSubscriber1} from "./helpers/services/UnmanagedEventSubscriber1.js";
import {UnmanagedEventSubscriber2} from "./helpers/services/UnmanagedEventSubscriber2.js";
import {MikroOrmModule, TransactionalInterceptor} from "../src/index.js";
import {Hooks} from "./helpers/services/Hooks.js";
import {defineConfig} from "@mikro-orm/mongodb";
import {UserService} from "./helpers/services/UserService.js";

describe("MikroOrm integration", () => {
describe.skip("MikroOrm integration", () => {
let spiedLogger!: Logger;
let spiedTransactionalInterceptor!: TransactionalInterceptor;
let spiedHooks!: Hooks;

beforeEach(async () => {
await TestMongooseContext.install({replicaSet: true});
const {url: clientUrl} = await TestMongooseContext.getMongooseOptions();
// await TestMongooseContext.install({replicaSet: true});
// const {url: clientUrl} = await TestMongooseContext.getMongooseOptions();
const bstrp = PlatformTest.bootstrap(Server, {
disableComponentScan: true,
imports: [MikroOrmModule],
Expand Down Expand Up @@ -52,7 +51,7 @@ describe("MikroOrm integration", () => {
afterEach(async () => {
reset<Hooks | TransactionalInterceptor | Logger>(spiedLogger, spiedTransactionalInterceptor, spiedHooks);

await TestMongooseContext.reset();
// await TestMongooseContext.reset();
});

it("should return repository", () => {
Expand Down
Loading

0 comments on commit f7e9953

Please sign in to comment.