Skip to content

Commit d102a91

Browse files
committed
Basic structure working without Draft.js + Jest instead of Mocha
1 parent 6e557bc commit d102a91

22 files changed

+5248
-414
lines changed

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ gulpfile.js
1616
readme.md
1717
tslint.json
1818
ts-build
19-
.storybook

demo/client.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as React from "react";
22
import { render } from "react-dom";
33
import { App } from "./App";
44

5-
// stylings
65
import "../node_modules/normalize.css/normalize.css";
76
import "../node_modules/draft-js/dist/Draft.css";
87
import "../src/styles/react-mde-all.scss";

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gulp.task('copy_styles', function () {
1919
});
2020

2121
gulp.task('build-lib', ['copy_styles', 'build_styles'], function () {
22-
const tsResult = gulp.src('src/**/*.{ts,tsx}')
22+
const tsResult = tsProject.src()
2323
.pipe(tsProject({
2424
declaration: true
2525
}));

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
preset: "ts-jest",
3+
testEnvironment: "jsdom",
4+
setupTestFrameworkScriptFile: "./src/setupTests.ts"
5+
};

0 commit comments

Comments
 (0)