UNPKG

@posthog/nextjs-config

Version:

NextJS configuration helper for Posthog 🦔

17 lines (16 loc) • 723 B
"use strict"; var __webpack_exports__ = {}; const external_utils_js_namespaceObject = require("./utils.js"); describe('buildLocalBinaryPaths', ()=>{ it('generates possible binary locations', ()=>{ const cwd = '/home/user'; const result = (0, external_utils_js_namespaceObject.buildLocalBinaryPaths)(cwd); expect(result.includes('/home/user/node_modules/.bin')).toBe(true); expect(result.includes('/home/node_modules/.bin')).toBe(true); expect(result.includes('/node_modules/.bin')).toBe(true); }); }); for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; Object.defineProperty(exports, '__esModule', { value: true });