Skip to content

Use extracted tests #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches:
- master
pull_request: {}

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
test:
name: "Tests"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: yarn
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Run Tests
run: yarn test


133 changes: 0 additions & 133 deletions __tests__/browser-only/fetch-sanity-check-test.js

This file was deleted.

5 changes: 5 additions & 0 deletions __tests__/browser-only/main-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { fetchSanityCheckTest, passthroughTest } from 'mirage-interceptor-test';
import PretenderInterceptor from 'mirage-pretender';

fetchSanityCheckTest('pretender', PretenderInterceptor);
passthroughTest('pretender', PretenderInterceptor);
203 changes: 0 additions & 203 deletions __tests__/browser-only/passthrough-test.js

This file was deleted.

1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ let browserEnvironment = {
testMatch: [
"**/__tests__/browser-only/**/*-test.[jt]s?(x)",
],
transformIgnorePatterns: ['/node_modules/(?!(mirage-interceptor-test)/)'],
};

module.exports = {
Expand Down
Loading