Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:

- name: Run JS integration tests
working-directory: packages/react-native-audio-api
run: yarn test:js
run: yarn build && yarn test:js
8 changes: 4 additions & 4 deletions packages/react-native-audio-api/mock/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"main": "../../lib/module/mock/index",
"module": "../../lib/module/mock/index",
"react-native": "../../src/mock/index",
"types": "../../lib/typescript/mock/index.d.ts"
"main": "../lib/module/mock/index",
"module": "../lib/module/mock/index",
"react-native": "../src/mock/index",
"types": "../lib/typescript/mock/index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/react-native-audio-api/tests/integration.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable */

import * as MockAPI from '../src/mock';
import * as MockAPI from 'react-native-audio-api/mock';

describe('Mock Integration Tests', () => {
describe('Audio Graph Creation', () => {
Expand Down Expand Up @@ -86,6 +86,7 @@ describe('Mock Integration Tests', () => {
// Stop recording
const stopResult = recorder.stop();
expect(stopResult.status).toBe('success');
// @ts-ignore - paths is not seen as the correct type
expect(stopResult.paths?.length).toBeGreaterThan(0);
expect(recorder.isRecording()).toBe(false);
});
Expand Down
3 changes: 2 additions & 1 deletion packages/react-native-audio-api/tests/mock.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable */

import * as MockAPI from '../src/mock';
import * as MockAPI from 'react-native-audio-api/mock';

describe('React Native Audio API Mocks', () => {
describe('AudioContext', () => {
Expand Down Expand Up @@ -283,6 +283,7 @@ describe('React Native Audio API Mocks', () => {

const stopResult = recorder.stop();
expect(stopResult.status).toBe('success');
// @ts-ignore - paths is not seen as the correct type
expect(stopResult.paths?.length).toBeGreaterThan(0);
expect(recorder.isRecording()).toBe(false);
});
Expand Down
Loading