mirror of https://github.com/sveltejs/svelte
parent
7e98b2c03d
commit
b9f9a93a60
@ -1 +0,0 @@
|
|||||||
test/test.js
|
|
@ -1,6 +1,5 @@
|
|||||||
import * as assert from 'assert';
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import { env, svelte, setupHtmlEqual, shouldUpdateExpected } from '../helpers.js';
|
import { env, svelte, setupHtmlEqual, shouldUpdateExpected, assert } from '../helpers';
|
||||||
|
|
||||||
function try_require(file) {
|
function try_require(file) {
|
||||||
try {
|
try {
|
@ -1,6 +1,6 @@
|
|||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as assert from 'assert';
|
import * as assert from 'assert';
|
||||||
import { loadConfig, svelte } from '../helpers.js';
|
import { loadConfig, svelte } from '../helpers';
|
||||||
|
|
||||||
describe('preprocess', () => {
|
describe('preprocess', () => {
|
||||||
fs.readdirSync(`${__dirname}/samples`).forEach(dir => {
|
fs.readdirSync(`${__dirname}/samples`).forEach(dir => {
|
@ -1,7 +1,7 @@
|
|||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
import * as assert from "assert";
|
import * as assert from "assert";
|
||||||
import { svelte } from "../helpers.js";
|
import { svelte } from "../helpers";
|
||||||
import { SourceMapConsumer } from "source-map";
|
import { SourceMapConsumer } from "source-map";
|
||||||
import { getLocator } from "locate-character";
|
import { getLocator } from "locate-character";
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as assert from 'assert';
|
import * as assert from 'assert';
|
||||||
import { svelte, loadConfig, tryToLoadJson } from '../helpers.js';
|
import { svelte, loadConfig, tryToLoadJson } from '../helpers';
|
||||||
|
|
||||||
describe('stats', () => {
|
describe('stats', () => {
|
||||||
fs.readdirSync(`${__dirname}/samples`).forEach(dir => {
|
fs.readdirSync(`${__dirname}/samples`).forEach(dir => {
|
@ -1,14 +1,14 @@
|
|||||||
const glob = require('tiny-glob/sync.js');
|
const glob = require('tiny-glob/sync.js');
|
||||||
|
|
||||||
require('./setup');
|
import './setup';
|
||||||
|
|
||||||
// bind internal to jsdom
|
// bind internal to jsdom
|
||||||
require('./helpers');
|
import './helpers';
|
||||||
require('../internal');
|
import '../internal';
|
||||||
|
|
||||||
console.clear();
|
console.clear();
|
||||||
|
|
||||||
const test_folders = glob('*/index.js', { cwd: 'test' });
|
const test_folders = glob('*/index.ts', { cwd: 'test' });
|
||||||
const solo_folders = test_folders.filter(folder => /\.solo/.test(folder));
|
const solo_folders = test_folders.filter(folder => /\.solo/.test(folder));
|
||||||
|
|
||||||
if (solo_folders.length) {
|
if (solo_folders.length) {
|
@ -1,6 +1,6 @@
|
|||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
import * as assert from "assert";
|
import * as assert from "assert";
|
||||||
import { svelte, loadConfig, tryToLoadJson } from "../helpers.js";
|
import { svelte, loadConfig, tryToLoadJson } from "../helpers";
|
||||||
|
|
||||||
describe("validate", () => {
|
describe("validate", () => {
|
||||||
fs.readdirSync(`${__dirname}/samples`).forEach(dir => {
|
fs.readdirSync(`${__dirname}/samples`).forEach(dir => {
|
@ -1,6 +1,6 @@
|
|||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as assert from 'assert';
|
import * as assert from 'assert';
|
||||||
import { svelte, loadConfig, tryToLoadJson } from '../helpers.js';
|
import { svelte, loadConfig, tryToLoadJson } from '../helpers';
|
||||||
|
|
||||||
describe('vars', () => {
|
describe('vars', () => {
|
||||||
fs.readdirSync(`${__dirname}/samples`).forEach(dir => {
|
fs.readdirSync(`${__dirname}/samples`).forEach(dir => {
|
Loading…
Reference in new issue