diff --git a/src/generator.js b/src/generator.js
index 6c1c7c6..3550986 100644
--- a/src/generator.js
+++ b/src/generator.js
@@ -1,8 +1,6 @@
import fs from 'fs'
import path from 'path'
-import { parse } from 'babylon'
-import generateCode from '@babel/generator'
import _get from 'lodash.get'
import parser from './parser'
diff --git a/test/examples/jsx.js b/test/examples/jsx.js
index a8a5fea..77a6210 100644
--- a/test/examples/jsx.js
+++ b/test/examples/jsx.js
@@ -1,4 +1,4 @@
-import crates from '../../'
+import crates from '../../src'
const component = (
diff --git a/test/examples/vanilla.module.js b/test/examples/vanilla.module.js
index cf73537..471c550 100644
--- a/test/examples/vanilla.module.js
+++ b/test/examples/vanilla.module.js
@@ -1,4 +1,4 @@
-import crates from '../../'
+import crates from '../../src'
console.info(crates('Hello ', 'World!!!'))
diff --git a/test/examples/vanilla.script.js b/test/examples/vanilla.script.js
index 6d33554..8cd277a 100644
--- a/test/examples/vanilla.script.js
+++ b/test/examples/vanilla.script.js
@@ -1,4 +1,4 @@
-const crates = require('../../')
+const crates = require('../../src')
console.info(crates('Hello ', 'World!!!'))
diff --git a/test/parser.jsx.test.js b/test/parser.jsx.test.js
index f9b9778..1f89e16 100644
--- a/test/parser.jsx.test.js
+++ b/test/parser.jsx.test.js
@@ -13,17 +13,17 @@ describe('run parser on JSX file', () => {
})
test('to test, the translations must have 1 or more elements', async () => {
- const translations = await parser(file, { moduleName: '../../' })
+ const translations = await parser(file, { moduleName: '../../src' })
expect(translations.size).toBeGreaterThan(1)
})
test('parser function should return a map with strings to translate', async () => {
- const translations = await parser(file, { moduleName: '../../' })
+ const translations = await parser(file, { moduleName: '../../src' })
expect(translations).toBeInstanceOf(Map)
})
test("the map's keys must be equal to value", async () => {
- const translations = await parser(file, { moduleName: '../../' })
+ const translations = await parser(file, { moduleName: '../../src' })
translations.forEach((value, key) => {
expect(key).toEqual(value)
})
diff --git a/test/parser.vanilla.test.js b/test/parser.vanilla.test.js
index d1c522f..2bec6be 100644
--- a/test/parser.vanilla.test.js
+++ b/test/parser.vanilla.test.js
@@ -13,17 +13,17 @@ describe('run parser on vanilla-module file', () => {
})
test('to test, the translations must have 1 or more elements', async () => {
- const translations = await parser(file, { moduleName: '../../' })
+ const translations = await parser(file, { moduleName: '../../src' })
expect(translations.size).toBeGreaterThan(1)
})
test('parser function should return a map with strings to translate', async () => {
- const translations = await parser(file, { moduleName: '../../' })
+ const translations = await parser(file, { moduleName: '../../src' })
expect(translations).toBeInstanceOf(Map)
})
test("the map's keys must be equal to value", async () => {
- const translations = await parser(file, { moduleName: '../../' })
+ const translations = await parser(file, { moduleName: '../../src' })
translations.forEach((value, key) => {
expect(key).toEqual(value)
})
@@ -40,17 +40,17 @@ describe('run parser on vanilla-script file', () => {
})
test('to test, the translations must have 1 or more elements', async () => {
- const translations = await parser(file, { moduleName: '../../' })
+ const translations = await parser(file, { moduleName: '../../src' })
expect(translations.size).toBeGreaterThan(1)
})
test('parser function should return a map with strings to translate', async () => {
- const translations = await parser(file, { moduleName: '../../' })
+ const translations = await parser(file, { moduleName: '../../src' })
expect(translations).toBeInstanceOf(Map)
})
test("the map's keys must be equal to value", async () => {
- const translations = await parser(file, { moduleName: '../../' })
+ const translations = await parser(file, { moduleName: '../../src' })
translations.forEach((value, key) => {
expect(key).toEqual(value)
})