@superblocksteam/sdk 2.0.64 → 2.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,7 @@ const currentGitBranch = await getCurrentGitBranch();
19
19
  describe("get current branch info", () => {
20
20
  let createdSuperblocksFolder = false;
21
21
 
22
+ // eslint-disable-next-line mocha/no-top-level-hooks
22
23
  before(async function () {
23
24
  // Make the .superblocks folder in the test directory, if it is missing. It should be git-ignored.
24
25
  if (!fs.existsSync(superblocksTestFolder)) {
@@ -39,6 +40,7 @@ describe("get current branch info", () => {
39
40
  );
40
41
  });
41
42
 
43
+ // eslint-disable-next-line mocha/no-top-level-hooks
42
44
  after(async function () {
43
45
  // Delete the .superblocks folder in the test directory.
44
46
  if (createdSuperblocksFolder && fs.existsSync(superblocksTestFolder)) {
@@ -45,17 +45,17 @@ const NO_EXTRACT_SOURCE_CODE: ApiRepresentation = {
45
45
 
46
46
  describe("version-control", function () {
47
47
  const testDir = USE_TEMP_TEST_DIR
48
- ? // eslint-disable-next-line mocha/no-setup-in-describe
49
- fs.mkdtempSync(path.join(os.tmpdir(), "test-output"))
50
- : // eslint-disable-next-line mocha/no-setup-in-describe
51
- new URL("../../test-output", import.meta.url).pathname;
48
+ ? fs.mkdtempSync(path.join(os.tmpdir(), "test-output"))
49
+ : new URL("../../test-output", import.meta.url).pathname;
52
50
 
51
+ // eslint-disable-next-line mocha/no-top-level-hooks
53
52
  beforeEach(async function () {
54
53
  // Clean up the temporary directory before each test, then create it
55
54
  await fs.rm(testDir, { recursive: true, force: true });
56
55
  await fs.ensureDir(testDir);
57
56
  });
58
57
 
58
+ // eslint-disable-next-line mocha/no-top-level-hooks
59
59
  afterEach(async function () {
60
60
  // Clean up the temporary directory after each test
61
61
  await fs.rm(testDir, { recursive: true, force: true });
package/tsconfig.json CHANGED
@@ -13,7 +13,8 @@
13
13
  "esModuleInterop": true,
14
14
  "skipLibCheck": true,
15
15
  "incremental": true,
16
- "resolveJsonModule": true
16
+ "resolveJsonModule": true,
17
+ "isolatedModules": true
17
18
  },
18
19
  "include": ["src/**/*.ts", "src/**/*.mts"],
19
20
  "exclude": ["node_modules", "dist"]