From 39f0e78a6b755f8b387069693a51149a06b5a0a7 Mon Sep 17 00:00:00 2001 From: Gage Vander Clay Date: Fri, 8 Mar 2024 16:15:16 -0600 Subject: [PATCH] Ensure tests can run --- .github/workflows/test.yml | 1 + packages/managed-config/jest.config.js | 1 + .../src/__tests__/generateAppRestrictionsContent.test.ts | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 packages/managed-config/jest.config.js diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f43a15f..47a7d71 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,6 +43,7 @@ jobs: react-native-siri-shortcut, react-native-google-cast, react-native-pdf, + managed-config, ] name: Test ${{ matrix.package }} on Node ${{ matrix.node }} steps: diff --git a/packages/managed-config/jest.config.js b/packages/managed-config/jest.config.js new file mode 100644 index 0000000..d52d034 --- /dev/null +++ b/packages/managed-config/jest.config.js @@ -0,0 +1 @@ +module.exports = require("expo-module-scripts/jest-preset-plugin"); diff --git a/packages/managed-config/src/__tests__/generateAppRestrictionsContent.test.ts b/packages/managed-config/src/__tests__/generateAppRestrictionsContent.test.ts index 0016be1..3c0c6bf 100644 --- a/packages/managed-config/src/__tests__/generateAppRestrictionsContent.test.ts +++ b/packages/managed-config/src/__tests__/generateAppRestrictionsContent.test.ts @@ -1,5 +1,5 @@ -import { AppRestriction } from "../app-restriction-types"; -import { generateAppRestrictionsContent } from "../generate-app-restrictions-content"; +import { AppRestriction } from "../appRestrictionTypes"; +import { generateAppRestrictionsContent } from "../generateAppRestrictionsContent"; describe("generateAppRestrictionsContent", () => { describe("string", () => {