Skip to content

Commit

Permalink
refactor: migrate compare.test.ts file to esm
Browse files Browse the repository at this point in the history
- solve migration issues
  • Loading branch information
hereje committed Jan 14, 2024
1 parent 7bcc1ec commit 118fb55
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/concerto-analysis/test/unit/compare.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { ModelFile, ModelManager } from '@accordproject/concerto-core';
import { Parser } from '@accordproject/concerto-cto';
import * as fs from 'fs/promises';
import * as path from 'path';
import { Compare, CompareResult, compareResultToString } from '../../src';
import fs from 'fs/promises';
import path, { dirname } from 'path';
import { fileURLToPath } from 'url';
import { Compare, CompareResult, compareResultToString } from '../../src/index';
import { defaultCompareConfig } from '../../src/compare-config';

const __dirname = dirname(fileURLToPath(import.meta.url));

async function getModelFile(modelManager: ModelManager, fileName: string) {
const filePath = path.resolve(__dirname, '..', 'fixtures', fileName);
const fileContents = await fs.readFile(filePath, 'utf-8');
Expand Down

0 comments on commit 118fb55

Please sign in to comment.