1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 18:39:51 +02:00

Convert Slate tests to TypeScript (#3784)

* changed to tsx

* slate tests

* finished making typescript tests

* linting

* linting

* reverted slate-hyperscript files to jsx and changed edlint config

* removed extra file

* Update package.json

* Update package.json

* deleted { file

* changed to tsx

* slate tests

* finished making typescript tests

* linting

* linting

* reverted slate-hyperscript files to jsx and changed edlint config

* removed extra file

* Update package.json

* Update package.json

* deleted { file

* rebase

* removed ~ files

* changed yarn
This commit is contained in:
Maria Jaramillo
2020-07-14 12:47:47 -05:00
committed by GitHub
parent 97dbab13a8
commit 93fe251517
890 changed files with 43 additions and 3230 deletions

View File

@@ -23,10 +23,9 @@ export const fixtures = (...args) => {
if (stat.isDirectory()) {
fixtures(path, file, fn)
}
if (
stat.isFile() &&
file.endsWith('.js') &&
(file.endsWith('.js') || file.endsWith('.ts') || file.endsWith('.tsx')) &&
!file.startsWith('.') &&
// Ignoring `index.js` files allows us to use the fixtures directly
// from the top-level directory itself, instead of only children.
@@ -35,7 +34,7 @@ export const fixtures = (...args) => {
const name = basename(file, extname(file))
// This needs to be a non-arrow function to use `this.skip()`.
it(`${name} `, function() {
it(`${name} `, function () {
const module = require(p)
if (module.skip) {