title: Firebase Functions TypeScript unit testing devDependencies
body: <p>Following the guideline here: <a href="https://firebase.google.com/docs/functions/unit-testing" rel="nofollow noreferrer">https://firebase.google.com/docs/functions/unit-testing</a>
  I'm trying to write unit tests to my TS functions.
  here's my package.json:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    "name": "functions",
    "scripts": {
      "lint": "tslint --project tsconfig.json",
      "build": "tsc",
      "serve": "npm run build &amp;&amp; firebase serve --only functions",
      "shell": "npm run build &amp;&amp; firebase functions:shell",
      "start": "npm run shell",
      "deploy": "firebase deploy --only functions",
      "logs": "firebase functions:log",
      "test": "mocha --reporter spec"
    },
    "main": "lib/index.js",
    "dependencies": {
      "@types/algoliasearch": "^3.27.0",
      "@types/axios": "^0.14.0",
      "@types/nodemailer": "^4.6.0",
      "@types/stripe": "^5.0.11",
      "algoliasearch": "^3.27.1",
      "axios": "^0.18.0",
      "firebase-admin": "~5.12.0",
      "firebase-functions": "^1.0.3",
      "nodemailer": "^4.6.4",
      "stripe": "^5.8.0",
      "webpack": "^4.7.0"
    },
    "devDependencies": {
      "@types/node": "^9.6.6",
      "firebase-functions-test": "^0.1.2",
      "mocha": "^5.2.0",
      "ts-loader": "^4.2.0",
      "tslint": "^5.8.0",
      "typescript": "^2.8.3",
      "webpack-cli": "^2.1.2",
      "webpack-node-externals": "^1.7.2"
    },
    "private": true
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>and I have 1 problem and 1 question.</p>
  
  <p><strong>problem:</strong>
  I can't import the firebase-functions-test
  in my index.test.ts file.
  it is looking for it in dependencies only and not in devDependencies...
  (adding it inside dependencies solve it).</p>
  
  <p><strong>question:</strong>
  Can I move all the @types to devDependencies?</p>
  
  <p>Thanks.</p>