Skip to content

Commit a43f0b3

Browse files
authored
Merge pull request #1158 from joshunrau/fixes
fix tests and refactor confusing code in vite-plugin-runtime
2 parents 3d69c01 + fe1c5ff commit a43f0b3

File tree

47 files changed

+379
-568
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+379
-568
lines changed

apps/api/src/instruments/__tests__/instruments.service.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ describe('InstrumentsService', () => {
1515
const moduleRef = await Test.createTestingModule({
1616
providers: [
1717
InstrumentsService,
18+
MockFactory.createForModelToken(getModelToken('Group')),
1819
MockFactory.createForModelToken(getModelToken('Instrument')),
1920
MockFactory.createForService(CryptoService),
2021
MockFactory.createForService(LoggingService),

apps/gateway/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path';
22

3-
import { runtime } from '@opendatacapture/vite-plugin-runtime';
3+
import runtime from '@opendatacapture/vite-plugin-runtime';
44
import tailwindcss from '@tailwindcss/vite';
55
import react from '@vitejs/plugin-react-swc';
66
import { defineConfig } from 'vite';

apps/playground/src/instruments/examples/form/Form-Reference/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable perfectionist/sort-objects */
22

33
import { defineInstrument } from '/runtime/v1/@opendatacapture/runtime-core';
4-
import { z } from '/runtime/v1/zod@3.23.x';
4+
import { z } from '/runtime/v1/[email protected]';
55

66
export default defineInstrument({
77
kind: 'FORM',

apps/playground/src/instruments/examples/form/Form-With-Computed-Measures/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { defineInstrument } from '/runtime/v1/@opendatacapture/runtime-core';
44
import { mean } from '/runtime/v1/[email protected]';
5-
import { z } from '/runtime/v1/zod@3.23.x';
5+
import { z } from '/runtime/v1/[email protected]';
66

77
const CURRENT_YEAR = new Date().getFullYear();
88
const LAST_YEAR = CURRENT_YEAR - 1;

apps/playground/src/instruments/examples/form/Form-With-Groups/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable perfectionist/sort-objects */
22

33
import { defineInstrument } from '/runtime/v1/@opendatacapture/runtime-core';
4-
import { z } from '/runtime/v1/zod@3.23.x';
4+
import { z } from '/runtime/v1/[email protected]';
55

66
export default defineInstrument({
77
kind: 'FORM',

apps/playground/src/instruments/examples/form/Multilingual-Form-With-Dynamic-Field/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable perfectionist/sort-objects */
22

33
import { defineInstrument } from '/runtime/v1/@opendatacapture/runtime-core';
4-
import { z } from '/runtime/v1/zod@3.23.x';
4+
import { z } from '/runtime/v1/[email protected]';
55

66
export default defineInstrument({
77
kind: 'FORM',

apps/playground/src/instruments/examples/interactive/Interactive-With-CSS/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable perfectionist/sort-objects */
22

33
import { defineInstrument } from '/runtime/v1/@opendatacapture/runtime-core';
4-
import { z } from '/runtime/v1/zod@3.23.x';
4+
import { z } from '/runtime/v1/[email protected]';
55

66
import logoSrc from './logo.png';
77

apps/playground/src/instruments/examples/interactive/Interactive-With-Embedded-Media/Task.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect, useState } from '/runtime/v1/[email protected]';
22
import { match } from '/runtime/v1/[email protected]';
3-
import { z } from '/runtime/v1/zod@3.23.x';
3+
import { z } from '/runtime/v1/[email protected]';
44

55
import { CatVideo } from './CatVideo.tsx';
66
import { CowAudio } from './CowAudio.tsx';

apps/playground/src/instruments/examples/interactive/Interactive-With-JSPsych/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PreloadPlugin from '/runtime/v1/@jspsych/[email protected]';
44
import { defineInstrument } from '/runtime/v1/@opendatacapture/runtime-core';
55
import { initJsPsych } from '/runtime/v1/[email protected]';
66
import type { TimelineArray } from '/runtime/v1/[email protected]';
7-
import { z } from '/runtime/v1/zod@3.23.x';
7+
import { z } from '/runtime/v1/[email protected]';
88

99
import blue from './blue.png';
1010
import orange from './orange.png';

apps/playground/src/instruments/examples/interactive/Interactive-With-Legacy-Script/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable perfectionist/sort-objects */
22

33
import { defineInstrument } from '/runtime/v1/@opendatacapture/runtime-core';
4-
import { z } from '/runtime/v1/zod@3.23.x';
4+
import { z } from '/runtime/v1/[email protected]';
55

66
import './legacy.js';
77

0 commit comments

Comments
 (0)