Skip to content

Commit

Permalink
get tests compiling via TS again. most are very broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhouston committed Nov 29, 2023
1 parent 2bc064d commit eb2e515
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -25,14 +25,17 @@
"scripts": {
"build": "lerna run build",
"changeset:add": "changeset add",
"clean": "rm -rf node_modules packages/*/node_modules apps/*/node_modules packages/*/dist apps/*/dist",
"clean:dist": "rm -rf packages/*/dist apps/*/dist",
"clean:node_modules": "rm -rf node_modules packages/*/node_modules apps/*/node_modules",
"clean": "npm run clean:dist && npm run clean:node_modules",
"watch": "lerna run watch --parallel --stream",
"docs": "typedoc",
"format": "eslint \"{apps,packages}/*/src/**/*.{js,ts,tsx,json}\" --fix && prettier \"{apps,packages}/*/src/**/*.{js,ts,tsx,json}\" --check --write",
"release": "npm run build && npm run changeset publish",
"test": "jest",
"types": "lerna run types --parallel --stream",
"vers": "npm run changeset version"
"vers": "npm run changeset version",
"publish": "npm run clean:dist && npm run build && npm test && lerna publish --no-private"
},
"dependencies": {
"commander": "^9.4.1",
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/Graphs/IO/readGraphFromJSON.test.ts
Expand Up @@ -2,7 +2,6 @@ import { Logger } from '../../Diagnostics/Logger.js';
import { ManualLifecycleEventEmitter } from '../../Profiles/Core/Abstractions/Drivers/ManualLifecycleEventEmitter.js';
import { registerCoreProfile } from '../../Profiles/Core/registerCoreProfile.js';
import { readGraphFromJSON } from './readGraphFromJSON.js';
Logger.onWarn.clear();

describe('readGraphFromJSON', () => {
const registry = registerCoreProfile({
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/Profiles/Core/readCoreGraphs.test.ts
@@ -1,7 +1,6 @@
import fs from 'fs';
import path from 'path';

import { Logger } from '../../Diagnostics/Logger.js';
import { GraphInstance } from '../../Graphs/Graph.js';
import { GraphJSON } from '../../Graphs/IO/GraphJSON.js';
import { readGraphFromJSON } from '../../Graphs/IO/readGraphFromJSON.js';
Expand All @@ -13,7 +12,7 @@ import { getCoreNodesMap, getCoreValuesMap } from './registerCoreProfile.js';
const valueTypes = getCoreValuesMap();
const nodeDefinitions = getCoreNodesMap();

Logger.onWarn.clear();
//Logger.onWarn.clear();

const exampleMap = memo<Record<string, GraphJSON>>(() => {
const result = {} as Record<string, GraphJSON>;
Expand Down
1 change: 0 additions & 1 deletion packages/core/tsconfig.json
@@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"exclude": ["**/*.test.ts"],
"compilerOptions": {
"outDir": "dist"
}
Expand Down
1 change: 0 additions & 1 deletion packages/flow/tsconfig.json
@@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"exclude": ["**/*.test.ts"],
"compilerOptions": {
"outDir": "dist",
"jsx": "react-jsx"
Expand Down
1 change: 0 additions & 1 deletion packages/scene/tsconfig.json
@@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"exclude": ["**/*.test.ts"],
"compilerOptions": {
"jsx": "react-jsx",
"outDir": "dist"
Expand Down

0 comments on commit eb2e515

Please sign in to comment.