Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions __tests__/unit/data-reformat-test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { getDataModelIssues } from '../../src/contacsPane'

comsole.log('data reformat test')
import {parse} from "rdflib";
import {store} from "solid-logic";
import {ns} from "solid-ui";

import pane from "../../contactsPane";
import { parse } from "rdflib";
import { store } from "solid-logic";
import { context, doc, subject } from "./setup";
import {context, doc, subject} from "./setup";

// This was at testingsolidos.solidcommunity.net
const exampleProfile = `@prefix : <#>.
Expand Down
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ module.exports = {
testEnvironment: 'jsdom',
setupFilesAfterEnv: ["./jest.setup.ts"],
transformIgnorePatterns: ["/node_modules/(?!lit-html).+\\.js"],
testEnvironmentOptions: {
customExportConditions: ['node']
},
testPathIgnorePatterns: ["setup.ts"]
};
7 changes: 4 additions & 3 deletions jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// import "@testing-library/jest-dom";
// import fetchMock from "jest-fetch-mock";
// Polyfill for encoding which isn't present globally in jsdom
import { TextEncoder, TextDecoder } from 'util';

// fetchMock.enableMocks();
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;