Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
fix: removing some environmental exclusions of styles (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion authored Mar 25, 2020
1 parent 5fafce2 commit 7df3086
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 36 deletions.
10 changes: 1 addition & 9 deletions packages/markdown/components/Callout/index.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
// There's a bug in jsdom where Jest spits out heaps of errors from it not being able to interpret
// this file, so let's not include this when running tests since we aren't doing visual testing
// anyways.
// https://github.com/jsdom/jsdom/issues/217
/* istanbul ignore next */
if (process.env.NODE_ENV !== 'test') {
// eslint-disable-next-line global-require
require('./style.scss');
}
require('./style.scss');

const React = require('react');
const PropTypes = require('prop-types');
Expand Down
10 changes: 1 addition & 9 deletions packages/markdown/components/CodeTabs/index.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
// There's a bug in jsdom where Jest spits out heaps of errors from it not being able to interpret
// this file, so let's not include this when running tests since we aren't doing visual testing
// anyways.
// https://github.com/jsdom/jsdom/issues/217
/* istanbul ignore next */
if (process.env.NODE_ENV !== 'test') {
// eslint-disable-next-line global-require
require('./style.scss');
}
require('./style.scss');

const React = require('react');
const PropTypes = require('prop-types');
Expand Down
10 changes: 1 addition & 9 deletions packages/markdown/components/Heading/index.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
// There's a bug in jsdom where Jest spits out heaps of errors from it not being able to interpret
// this file, so let's not include this when running tests since we aren't doing visual testing
// anyways.
// https://github.com/jsdom/jsdom/issues/217
/* istanbul ignore next */
if (process.env.NODE_ENV !== 'test') {
// eslint-disable-next-line global-require
require('./style.scss');
}
require('./style.scss');

const React = require('react');
const PropTypes = require('prop-types');
Expand Down
10 changes: 1 addition & 9 deletions packages/markdown/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
// There's a bug in jsdom where Jest spits out heaps of errors from it not being able to interpret
// this file, so let's not include this when running tests since we aren't doing visual testing
// anyways.
// https://github.com/jsdom/jsdom/issues/217
/* istanbul ignore next */
if (process.env.NODE_ENV !== 'test') {
// eslint-disable-next-line global-require
require('./styles/main.scss');
}
require('./styles/main.scss');

const React = require('react');
const unified = require('unified');
Expand Down

0 comments on commit 7df3086

Please sign in to comment.