Skip to content

Commit

Permalink
ignore all OAS
Browse files Browse the repository at this point in the history
  • Loading branch information
olivermrbl committed Aug 11, 2023
1 parent d49368c commit 5360fed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
3 changes: 1 addition & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ const ignoreDirs = [].concat(
medusaBuildDirs,
builtTestsDirs,
distDirs,
"<rootDir>/packages/medusa-react/*",
"<rootDir>/packages/oas/medusa-oas-cli/*"
"<rootDir>/packages/medusa-react/*"
)

const coverageDirs = pkgs.map((p) => path.join(p, `src/**/*.js`))
Expand Down
5 changes: 2 additions & 3 deletions packages/medusa/src/loaders/__tests__/models.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { createMedusaContainer } from "medusa-core-utils"
import path from "path"
import { createMedusaContainer } from "@medusajs/utils"
import { asValue } from "awilix"

import path from "path"
import modelsLoader from "../models"

describe("models loader", () => {
Expand Down
10 changes: 5 additions & 5 deletions packages/medusa/src/loaders/models.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { asClass, asValue } from "awilix"
import glob from "glob"
import path from "path"
import { EntitySchema } from "typeorm"
import { ClassConstructor, MedusaContainer } from "../types/global"
import {
formatRegistrationName,
formatRegistrationNameWithoutNamespace,
} from "../utils/format-registration-name"
import { getModelExtensionsMap } from "./helpers/get-model-extension-map"
import glob from "glob"
import path from "path"
import { ClassConstructor, MedusaContainer } from "../types/global"
import { EntitySchema } from "typeorm"
import { asClass, asValue } from "awilix"

type ModelLoaderParams = {
container: MedusaContainer
Expand Down
3 changes: 1 addition & 2 deletions packages/oas/medusa-oas-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"scripts": {
"prepublishOnly": "cross-env NODE_ENV=production tsc --build",
"build": "tsc --build",
"medusa-oas": "ts-node src/index.ts",
"test": "NODE_OPTIONS='--unhandled-rejections=strict' jest src"
"medusa-oas": "ts-node src/index.ts"
},
"dependencies": {
"@medusajs/medusa": "^1.13.1",
Expand Down

0 comments on commit 5360fed

Please sign in to comment.